From 4be94173d451db6934bae1b130fa761020824055 Mon Sep 17 00:00:00 2001 From: TuxCoder Date: Sun, 21 Jun 2020 11:17:59 +0200 Subject: [PATCH] fix oauth2 token fetch bug --- lenticular_cloud/views/auth.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lenticular_cloud/views/auth.py b/lenticular_cloud/views/auth.py index 5e18a3c..9f710b6 100644 --- a/lenticular_cloud/views/auth.py +++ b/lenticular_cloud/views/auth.py @@ -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: diff --git a/requirements.txt b/requirements.txt index 8d03cdf..13d56d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ flask_babel flask_wtf flask_login flask_sqlalchemy -flask_dancer +Flask-Dance ldap3 ldap3_orm