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

Commit

Permalink
Merge pull request #200 from mrvanes/patch-1
Browse files Browse the repository at this point in the history
Update views.py
  • Loading branch information
rohe authored May 13, 2022
2 parents 11194bc + 6b9f9d7 commit d9106be
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d9106be

Please sign in to comment.