Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit d9106be

Browse files
authored
Merge pull request #200 from mrvanes/patch-1
Update views.py
2 parents 11194bc + 6b9f9d7 commit d9106be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/flask_op/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from oidcop.exception import FailedAuthentication
2121
from oidcop.exception import ClientAuthenticationError
22-
from oidcop.exception import TokenAuthenticationError
22+
from oidcop.exception import BearerTokenAuthenticationError
2323
from oidcop.oidc.token import Token
2424

2525
# logger = logging.getLogger(__name__)
@@ -230,7 +230,7 @@ def service_endpoint(endpoint):
230230
'error': 'unauthorized_client',
231231
'error_description': str(err)
232232
}), 401)
233-
except TokenAuthenticationError as err:
233+
except BearerTokenAuthenticationError as err:
234234
_log.error(err)
235235
return make_response(json.dumps({
236236
'error': 'invalid_token',

0 commit comments

Comments
 (0)