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

Commit 29d6f35

Browse files
authored
Merge pull request #164 from IdentityPython/develop
v2.3.1
2 parents fbc95ad + d26bdb9 commit 29d6f35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/oidcop/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import secrets
22

3-
__version__ = "2.3.0"
3+
__version__ = "2.3.1"
44

55
DEF_SIGN_ALG = {
66
"id_token": "RS256",

src/oidcop/oidc/userinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def process_request(self, request=None, **kwargs):
118118
_grant = _session_info["grant"]
119119
token = _grant.get_token(request["access_token"])
120120
# should be an access token
121-
if token.token_class != "access_token":
121+
if token and token.token_class != "access_token":
122122
return self.error_cls(error="invalid_token", error_description="Wrong type of token")
123123

124124
# And it should be valid

0 commit comments

Comments
 (0)