From c38ef2f34a4fb787d2452379bbab10c942cc3aff Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Thu, 10 Mar 2016 14:06:33 -0500 Subject: [PATCH] fix(sidebar): use http basic auth to pass token --- .../participant-profile/lib/clearbit-data-source.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal_packages/participant-profile/lib/clearbit-data-source.coffee b/internal_packages/participant-profile/lib/clearbit-data-source.coffee index 74e18e890..2a7eb775d 100644 --- a/internal_packages/participant-profile/lib/clearbit-data-source.coffee +++ b/internal_packages/participant-profile/lib/clearbit-data-source.coffee @@ -9,7 +9,10 @@ module.exports = class ClearbitDataSource tok = AccountStore.tokenForAccountId(AccountStore.accounts()[0].id) new Promise (resolve, reject) => EdgehillAPI.request - path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}&api_token=#{tok}", + auth: + user: tok + pass: "" + path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}", success: (body) => resolve(@parseResponse(body)) error: reject