KEYCLOAK-5134

UnsupportedOperationException when using policy-enforcer-config with keycloak-spring-boot-adapter
This commit is contained in:
cadimmek 2017-11-09 10:43:50 +01:00 committed by GitHub
parent 3bf1904269
commit 518824e41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ public class PolicyEnforcerConfig {
private String type;
private String path;
private List<MethodConfig> methods = new ArrayList<>();
private List<String> scopes = Collections.emptyList();
private List<String> scopes = new ArrayList<>();
private String id;
@JsonProperty("enforcement-mode")
@ -218,7 +218,7 @@ public class PolicyEnforcerConfig {
public static class MethodConfig {
private String method;
private List<String> scopes = Collections.emptyList();
private List<String> scopes = new ArrayList<>();
@JsonProperty("scopes-enforcement-mode")
private ScopeEnforcementMode scopesEnforcementMode = ScopeEnforcementMode.ALL;