Add alias for callback path

This commit is contained in:
Joseph Schorr 2017-07-28 16:28:36 -04:00
parent 1d246784dd
commit adc70d2fe2

View file

@ -749,7 +749,7 @@ class ExternalLoginInformation(ApiResource):
csrf_token = generate_csrf_token(OAUTH_CSRF_TOKEN_NAME)
kind = request.get_json()['kind']
redirect_suffix = '/' if kind == 'login' else '/' + kind
redirect_suffix = '' if kind == 'login' else '/' + kind
try:
login_scopes = login_service.get_login_scopes()