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

Commit 89dba21

Browse files
committed
Strict on which signing algorithm that can be used.
1 parent fa38178 commit 89dba21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/oidcservice/oidc/access_token.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ def gather_verify_arguments(self):
3131
:return: dictionary with arguments to the verify call
3232
"""
3333
_ctx = self.service_context
34+
# Default is RS256
35+
_allowed_sign_alg = _ctx.registration_response.get("id_token_signed_response_alg", "RS256")
36+
3437
kwargs = {
3538
'client_id': _ctx.client_id, 'iss': _ctx.issuer,
3639
'keyjar': _ctx.keyjar, 'verify': True,
37-
'skew': _ctx.clock_skew
40+
'skew': _ctx.clock_skew, 'allowed_sign_alg': _allowed_sign_alg
3841
}
3942

4043
for attr, param in IDT2REG.items():

0 commit comments

Comments
 (0)