Skip to content

Commit

Permalink
Fix the silly syntax errors
Browse files Browse the repository at this point in the history
Sorry, found out the hard way my syntax validation was broken
  • Loading branch information
jinnatar committed Sep 9, 2024
1 parent 80e57ec commit f67286f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idpyoidc/message/oidc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ def verify(self, **kwargs):
# Check that any alg that is not "none" is supported.
# While OpenID Connect Core 1.0 says RS256 MUST be supported,
# reality has moved on and more modern alg values may be required.
if not any(lower(i) == "none" for i in self["id_token_signing_alg_values_supported"]:
if not any(i.lower == "none" for i in self["id_token_signing_alg_values_supported"]):
raise ValueError("Secure signing algorithm (for example RS256 or ES256) missing from id_token_signing_alg_values_supported")

if not parts.query and not parts.fragment:
Expand Down

0 comments on commit f67286f

Please sign in to comment.