Merge pull request #4653 from cadimmek/patch-1

KEYCLOAK-5134
This commit is contained in:
Pedro Igor 2017-11-27 09:12:21 -02:00 committed by GitHub
commit 92504e8ba3
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 type;
private String path; private String path;
private List<MethodConfig> methods = new ArrayList<>(); private List<MethodConfig> methods = new ArrayList<>();
private List<String> scopes = Collections.emptyList(); private List<String> scopes = new ArrayList<>();
private String id; private String id;
@JsonProperty("enforcement-mode") @JsonProperty("enforcement-mode")
@ -218,7 +218,7 @@ public class PolicyEnforcerConfig {
public static class MethodConfig { public static class MethodConfig {
private String method; private String method;
private List<String> scopes = Collections.emptyList(); private List<String> scopes = new ArrayList<>();
@JsonProperty("scopes-enforcement-mode") @JsonProperty("scopes-enforcement-mode")
private ScopeEnforcementMode scopesEnforcementMode = ScopeEnforcementMode.ALL; private ScopeEnforcementMode scopesEnforcementMode = ScopeEnforcementMode.ALL;