Skip to content

Commit 1472ec3

Browse files
committed
Remove "Only authorization tokens are accepted from other issuers"
1 parent 9712023 commit 1472ec3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

rest_framework_sso/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ def decode_jwt_token(token):
127127

128128
if payload.get(claims.TOKEN) not in (claims.TOKEN_SESSION, claims.TOKEN_AUTHORIZATION):
129129
raise InvalidTokenError("Unknown token type")
130-
if payload.get(claims.ISSUER) != api_settings.IDENTITY and payload.get(claims.TOKEN) != claims.TOKEN_AUTHORIZATION:
131-
raise InvalidTokenError("Only authorization tokens are accepted from other issuers")
132130
if not payload.get(claims.SESSION_ID):
133131
raise MissingRequiredClaimError("Session ID is missing.")
134132
if not payload.get(claims.USER_ID):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="djangorestframework-sso",
18-
version="0.2.3",
18+
version="0.2.4",
1919
packages=find_packages(exclude=["tests"]),
2020
include_package_data=True,
2121
license="MIT License",

0 commit comments

Comments
 (0)