File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,8 @@ Full list of settings parameters with their defaults::
183183 'DECODE_ALGORITHMS': None,
184184 'VERIFY_SIGNATURE': True,
185185 'VERIFY_EXPIRATION': True,
186+ 'VERIFY_ISSUER': True,
187+ 'VERIFY_AUDIENCE': True,
186188 'VERIFY_SESSION_TOKEN': True,
187189 'EXPIRATION_LEEWAY': 0,
188190 'SESSION_EXPIRATION': None,
Original file line number Diff line number Diff line change 2020 "DECODE_ALGORITHMS" : None ,
2121 "VERIFY_SIGNATURE" : True ,
2222 "VERIFY_EXPIRATION" : True ,
23+ "VERIFY_ISSUER" : True ,
24+ "VERIFY_AUDIENCE" : True ,
2325 "VERIFY_SESSION_TOKEN" : True ,
2426 "EXPIRATION_LEEWAY" : 0 ,
2527 "SESSION_EXPIRATION" : None ,
Original file line number Diff line number Diff line change @@ -108,7 +108,11 @@ def decode_jwt_token(token):
108108
109109 public_key , key_id = get_public_key_and_key_id (issuer = unverified_issuer , key_id = unverified_key_id )
110110
111- options = {"verify_exp" : api_settings .VERIFY_EXPIRATION , "verify_aud" : True , "verify_iss" : True }
111+ options = {
112+ "verify_exp" : api_settings .VERIFY_EXPIRATION ,
113+ "verify_iss" : api_settings .VERIFY_ISSUER ,
114+ "verify_aud" : api_settings .VERIFY_AUDIENCE ,
115+ }
112116
113117 payload = jwt .decode (
114118 jwt = token ,
Original file line number Diff line number Diff line change 1515
1616setup (
1717 name = "djangorestframework-sso" ,
18- version = "0.2.2 " ,
18+ version = "0.2.3 " ,
1919 packages = find_packages (exclude = ["tests" ]),
2020 include_package_data = True ,
2121 license = "MIT License" ,
You can’t perform that action at this time.
0 commit comments