mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-13 08:04:40 +08:00
fix(edgehill-server): auth uses GET token param instead of basic auth
This commit is contained in:
parent
753a342dae
commit
ffd762a9bc
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ class EdgehillAPI
|
||||||
urlForConnecting: (provider, email_address = '') ->
|
urlForConnecting: (provider, email_address = '') ->
|
||||||
auth = @getCredentials()
|
auth = @getCredentials()
|
||||||
root = @APIRoot
|
root = @APIRoot
|
||||||
root = root.replace('://', "://#{auth.username}:#{auth.password}@") if auth
|
token = auth?.username
|
||||||
"#{root}/connect/#{provider}?login_hint=#{email_address}"
|
"#{root}/connect/#{provider}?login_hint=#{email_address}&token=#{token}"
|
||||||
|
|
||||||
getCredentials: ->
|
getCredentials: ->
|
||||||
atom.config.get('edgehill.credentials')
|
atom.config.get('edgehill.credentials')
|
||||||
|
|
Loading…
Add table
Reference in a new issue