Skip to content

Commit

Permalink
OIDC UserInfo Endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Aug 26, 2024
1 parent c837dcf commit 3fbf595
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 189 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ public HTTPOpenIdAuthenticator(Settings settings, Path configPath) throws Except
}

public HTTPJwtKeyByOpenIdConnectAuthenticator getOpenIdJwtAuthenticator() {
if (openIdJwtAuthenticator == null) {
synchronized (this) {
if (openIdJwtAuthenticator == null) {
openIdJwtAuthenticator = new HTTPJwtKeyByOpenIdConnectAuthenticator(settings, configPath);
}
}
}
return openIdJwtAuthenticator;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ private JWSVerifier getInitializedSignatureVerifier(JWK key, SignedJWT jwt) thro

private void validateClaims(SignedJWT jwt) throws ParseException, BadJWTException {
JWTClaimsSet claims = jwt.getJWTClaimsSet();

if (claims != null) {
DefaultJWTClaimsVerifier<SimpleSecurityContext> claimsVerifier = new DefaultJWTClaimsVerifier<>(
requiredAudience.isEmpty() ? null : new HashSet<>(requiredAudience),
Expand Down
Loading

0 comments on commit 3fbf595

Please sign in to comment.