Skip to content

Commit

Permalink
[MNT-24542] added validator for openid scope
Browse files Browse the repository at this point in the history
  • Loading branch information
code4uuuu committed Nov 26, 2024
1 parent f34f284 commit 3ef07cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ private OAuth2TokenValidator<Jwt> createJwtTokenValidator(ProviderDetails provid
List<OAuth2TokenValidator<Jwt>> validators = new ArrayList<>();
validators.add(new JwtTimestampValidator(Duration.of(0, ChronoUnit.MILLIS)));
validators.add(new JwtIssuerValidator(providerDetails.getIssuerUri()));
validators.add(new JwtClaimValidator<String>("scope", scope -> scope!=null && scope.contains("openid")));
if (!config.isClientIdValidationDisabled())
{
validators.add(new JwtClaimValidator<String>("azp", config.getResource()::equals));
Expand Down

0 comments on commit 3ef07cf

Please sign in to comment.