refactor: Fix yellow code smells (!27)
All checks were successful
Quality Check / Tests (push) Successful in 1m0s
Quality Check / Checkstyle Main (push) Successful in 45s
Build / Build and analyze (push) Successful in 1m56s
Release / Release (push) Successful in 35s

Reviewed-on: #27
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
Co-authored-by: Jan Klattenhoff <jan@kjan.de>
Co-committed-by: Jan Klattenhoff <jan@kjan.de>
This commit is contained in:
Jan K9f 2024-10-02 08:43:01 +00:00 committed by Jan Gleytenhoover
commit cbb77cc1ca
5 changed files with 41 additions and 57 deletions

View file

@ -29,14 +29,10 @@ import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
@EnableWebSecurity
class KeycloakSecurityConfig {
private static final String GROUPS = "groups";
private static final String REALM_ACCESS_CLAIM = "realm_access";
private static final String ROLES_CLAIM = "roles";
private final KeycloakLogoutHandler keycloakLogoutHandler;
KeycloakSecurityConfig(KeycloakLogoutHandler keycloakLogoutHandler) {
this.keycloakLogoutHandler = keycloakLogoutHandler;
KeycloakSecurityConfig() {
}
@Bean