api/src/main/java/no/autopacker/api/security/KeycloakSecurityConfig.java
/**
     * Registers the KeycloakAuthenticationProvider with the authentication manager
     */
Registers the KeycloakAuthenticationProvider with the authentication manager
Registers the KeycloakAuthenticationProvider with the authentication manager
@Autowired
    public void configureGlobal(AuthenticationManagerBuilder auth) {
        KeycloakAuthenticationProvider keycloakAuthenticationProvider = keycloakAuthenticationProvider();
        keycloakAuthenticationProvider.setGrantedAuthoritiesMapper(new SimpleAuthorityMapper());
        auth.authenticationProvider(keycloakAuthenticationProvider);
    }
@ Autowired public void configureGlobal ( AuthenticationManagerBuilder auth ) { KeycloakAuthenticationProvider keycloakAuthenticationProvider = keycloakAuthenticationProvider ( ) ; keycloakAuthenticationProvider . setGrantedAuthoritiesMapper ( new SimpleAuthorityMapper ( ) ) ; auth . authenticationProvider ( keycloakAuthenticationProvider ) ; }
Registers the KeycloakAuthenticationProvider with the authentication manager
Registers the KeycloakAuthenticationProvider with the authentication manager