fix(edgehill-server): auth uses GET token param instead of basic auth

This commit is contained in:
Evan Morikawa 2015-03-19 10:28:11 -07:00
parent 753a342dae
commit ffd762a9bc

View file

@ -47,8 +47,8 @@ class EdgehillAPI
urlForConnecting: (provider, email_address = '') ->
auth = @getCredentials()
root = @APIRoot
root = root.replace('://', "://#{auth.username}:#{auth.password}@") if auth
"#{root}/connect/#{provider}?login_hint=#{email_address}"
token = auth?.username
"#{root}/connect/#{provider}?login_hint=#{email_address}&token=#{token}"
getCredentials: ->
atom.config.get('edgehill.credentials')