View example.java
@Bean | |
public AuthzClient authzClient(KeycloakSpringBootProperties kcProperties) { | |
Configuration configuration = new Configuration( | |
kcProperties.getAuthServerUrl(), kcProperties.getRealm(), | |
kcProperties.getResource(), kcProperties.getCredentials(), null); | |
return AuthzClient.create(configuration); | |
} |