Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Brandon Vulaj bvulaj

🏠
Working from home
View GitHub Profile
@dasniko
dasniko / example.java
Created Nov 27, 2017
Create AuthzClient with Spring Boot Adapter
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);
}