Skip to content

Commit

Permalink
Fix KeycloakPolicyEnforcer getSubjectEmail
Browse files Browse the repository at this point in the history
  • Loading branch information
alainbodiguel committed Feb 5, 2024
1 parent 7a69b8e commit 789b8b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ protected String getSubject(Object token) {
return ((AccessToken)token).getSubject();
}

@Override
protected Optional<String> getSubjectEmail(Object token) {
return Optional.ofNullable(((AccessToken) token).getEmail());
}

@Override
protected Map<String, Object> getRolesClaim(Object token, Optional<String> org) {
return Collections.singletonMap(org.orElse(""),
Expand Down

0 comments on commit 789b8b5

Please sign in to comment.