From 6b9f9d7de4048f9caa42615dc2db5fcf2bb9c8c8 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 13 May 2022 00:10:27 +0200 Subject: [PATCH] Update views.py The flask_op example was not updated for the new and more specific BearerTokenAuthenticationError Exception and fails in 2.4.1 --- example/flask_op/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/flask_op/views.py b/example/flask_op/views.py index 1852881..e4246ba 100644 --- a/example/flask_op/views.py +++ b/example/flask_op/views.py @@ -19,7 +19,7 @@ from oidcop.exception import FailedAuthentication from oidcop.exception import ClientAuthenticationError -from oidcop.exception import TokenAuthenticationError +from oidcop.exception import BearerTokenAuthenticationError from oidcop.oidc.token import Token # logger = logging.getLogger(__name__) @@ -230,7 +230,7 @@ def service_endpoint(endpoint): 'error': 'unauthorized_client', 'error_description': str(err) }), 401) - except TokenAuthenticationError as err: + except BearerTokenAuthenticationError as err: _log.error(err) return make_response(json.dumps({ 'error': 'invalid_token',