From eb264b77d1d731eb5e8192fc16d10e9a1a3eeba3 Mon Sep 17 00:00:00 2001 From: 0xMattijs Date: Thu, 3 Mar 2022 11:05:45 +0100 Subject: [PATCH] Fixed non-existing TokenAuthenticationError exception --- 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',