b0d0d3e579
I use Keycloak Spring Adapter (KSA) to secure existing application. Today I realized that some functions didn't work anymore because of security checking like this: ``` GrantedAuthority adminRole = new MySpecialGrantedAuthority( "superadmin" ); for ( GrantedAuthority role : userRoles ) { if ( role.equals( adminRole ) ) { return true; } } ``` In this example, when I use KSA authorization fails. I believe, that more preferable in `KeycloakRole` use this implementation of `equals` method. |
||
---|---|---|
.. | ||
src | ||
pom.xml |