Skip to content

Commit

Permalink
Retrieve scopes directly from AT entity
Browse files Browse the repository at this point in the history
  • Loading branch information
federicaagostini committed Jan 17, 2024
1 parent a57792b commit 0d349ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public void deleteClient(ClientDetailsEntity client) {
}

private boolean isValidAccessToken(OAuth2AccessTokenEntity a) {
return !(a.getAuthenticationHolder().getScope().contains("registration-token")
|| a.getAuthenticationHolder().getScope().contains("resource-token"));
return !(a.getScope().contains("registration-token")
|| a.getScope().contains("resource-token"));
}

private void deleteTokensByClient(ClientDetailsEntity client) {
Expand Down

0 comments on commit 0d349ec

Please sign in to comment.