Skip to content

Commit

Permalink
Merge pull request #437 from GeorgianaElena/missing_req
Browse files Browse the repository at this point in the history
Use yarl instead of tornado
  • Loading branch information
yuvipanda authored May 31, 2021
2 parents ef81c16 + a8fd5d7 commit fa524b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployer/auth.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from auth0.v3.authentication import GetToken
from auth0.v3.management import Auth0

from tornado.httputil import url_concat
from yarl import URL
import re

# What key in the authenticated user's profile to use as hub username
Expand Down Expand Up @@ -173,7 +173,7 @@ def get_client_creds(self, client, connection_name):
'client_id': client['client_id'],
'client_secret': client['client_secret'],
'scope': ['openid', 'name', 'profile', 'email'],
'logout_redirect_url': url_concat(f'https://{self.domain}/v2/logout', logout_redirect_params)
'logout_redirect_url': str(URL(f'https://{self.domain}/v2/logout').with_query(logout_redirect_params))
}

return auth

0 comments on commit fa524b4

Please sign in to comment.