Skip to content

Commit

Permalink
Merge pull request #601 from NBISweden/hotfix/login-secret
Browse files Browse the repository at this point in the history
Remove space that messed up Elixir auth.
  • Loading branch information
viklund committed Aug 27, 2019
2 parents 5b836d9 + b403623 commit d61d1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def get_user_token(self, code):
client_id = self.settings['elixir_oauth']['id']
secret = self.settings['elixir_oauth']['secret']

authorization = base64.b64encode(bytes(f"{client_id}: {secret}", 'ascii')).decode('ascii')
authorization = base64.b64encode(bytes(f"{client_id}:{secret}", 'ascii')).decode('ascii')

response = await http.fetch(self._OAUTH_ACCESS_TOKEN_URL,
method="POST",
Expand Down

0 comments on commit d61d1aa

Please sign in to comment.