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

Commit

Permalink
Strict on which signing algorithm that can be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Mar 16, 2020
1 parent fa38178 commit 89dba21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/oidcservice/oidc/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ def gather_verify_arguments(self):
:return: dictionary with arguments to the verify call
"""
_ctx = self.service_context
# Default is RS256
_allowed_sign_alg = _ctx.registration_response.get("id_token_signed_response_alg", "RS256")

kwargs = {
'client_id': _ctx.client_id, 'iss': _ctx.issuer,
'keyjar': _ctx.keyjar, 'verify': True,
'skew': _ctx.clock_skew
'skew': _ctx.clock_skew, 'allowed_sign_alg': _allowed_sign_alg
}

for attr, param in IDT2REG.items():
Expand Down

0 comments on commit 89dba21

Please sign in to comment.