Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Tiny cleanup to validate_metadata
Browse files Browse the repository at this point in the history
`validate_jwks_uri` already checks that `jwks_uri` is set.
  • Loading branch information
richvdh committed Feb 10, 2021
1 parent 586f11d commit 51d689a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions synapse/handlers/oidc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,7 @@ def _validate_metadata(self):
else:
# If we're not using userinfo, we need a valid jwks to validate the ID token
if m.get("jwks") is None:
if m.get("jwks_uri") is not None:
m.validate_jwks_uri()
else:
raise ValueError('"jwks_uri" must be set')
m.validate_jwks_uri()

@property
def _uses_userinfo(self) -> bool:
Expand Down

0 comments on commit 51d689a

Please sign in to comment.