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

Fixed non-existing TokenAuthenticationError exception #192

Merged
merged 1 commit into from
Mar 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/flask_op/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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',
Expand Down