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