29 lines
602 B
Java
29 lines
602 B
Java
package fr.lucasdupont.security;
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
@ConfigurationProperties(prefix = "keycloak.auth")
|
|
public class KeycloakAuthProperties {
|
|
|
|
private String role;
|
|
|
|
private boolean checkClientRole = false;
|
|
|
|
public String getRole() {
|
|
return role;
|
|
}
|
|
|
|
public void setRole(String role) {
|
|
this.role = role;
|
|
}
|
|
|
|
public boolean isCheckClientRole() {
|
|
return checkClientRole;
|
|
}
|
|
|
|
public void setCheckClientRole(boolean checkClientRole) {
|
|
this.checkClientRole = checkClientRole;
|
|
}
|
|
|
|
}
|