fix oauth2 token fetch bug

This commit is contained in:
TuxCoder 2020-06-21 11:17:59 +02:00
parent 9ca15167ba
commit 4be94173d4
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ def login():
login_challenge = request.args.get('login_challenge')
try:
login_request = current_app.hydra_api.get_login_request(login_challenge)
except ory_hydra_client.exceptions.ApiValueError:
except ory_hydra_client.exceptions.ApiException:
return redirect(url_for('frontend.index'))
if login_request.skip:

View file

@ -4,7 +4,7 @@ flask_babel
flask_wtf
flask_login
flask_sqlalchemy
flask_dancer
Flask-Dance
ldap3
ldap3_orm