src/main/java/br/eng/joaofaro/taskmanager/config/TaskManagerConfig.java
/**
     * <p>Integration method responsible for authentication from <code>keycloak</code></p>
     * @see AuthenticationManagerBuilder
     * @see KeycloakAuthenticationProvider
     *
     * @param auth authentication manager builder from Spring framework
     */
Integration method responsible for authentication from keycloak
@see AuthenticationManagerBuilder
@see KeycloakAuthenticationProvider

@param auth authentication manager builder from Spring framework
Integration method responsible for authentication from keycloak @see AuthenticationManagerBuilder @see KeycloakAuthenticationProvider @param auth authentication manager builder from Spring framework
@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 ) ; }
<p>Integration method responsible for authentication from <code>keycloak</code></p>
 @see AuthenticationManagerBuilder
 @see KeycloakAuthenticationProvider
<p > Integration method responsible for authentication from <code > keycloak< / code > < / p > @see AuthenticationManagerBuilder @see KeycloakAuthenticationProvider