Merge pull request #137 from constantine2nd/master

Fix SSO redirects to the portal instead of apis side
This commit is contained in:
Simon Redfern 2021-07-23 14:31:51 +02:00 committed by GitHub
commit c74a2a992c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ class OAuthAuthenticator(Authenticator):
else:
self.token = response.get('oauth_token')
self.secret = response.get('oauth_token_secret')
url = settings.API_HOST + settings.OAUTH_AUTHORIZATION_PATH
url = settings.API_PORTAL + settings.OAUTH_AUTHORIZATION_PATH
authorization_url = session.authorization_url(url)
LOGGER.log(logging.INFO, 'Initial token {}, secret {}'.format(
self.token, self.secret))