Skip to content
Snippets Groups Projects
Verified Commit a5933515 authored by Hugo Renard's avatar Hugo Renard
Browse files

add defaults in case of missing attributes

parent a5295da1
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,8 @@ public class ScimDispatcher { ...@@ -21,8 +21,8 @@ public class ScimDispatcher {
public void run(String scope, Consumer<ScimClient> f) { public void run(String scope, Consumer<ScimClient> f) {
session.getContext().getRealm().getComponentsStream() session.getContext().getRealm().getComponentsStream()
.filter((m) -> { .filter((m) -> {
return ScimStorageProviderFactory.ID.equals(m.getProviderId()) && m.get("enabled").equals("true") return ScimStorageProviderFactory.ID.equals(m.getProviderId()) && m.get("enabled", true)
&& m.get("propagation-" + scope).equals("true"); && m.get("propagation-" + scope, false);
}) })
.forEach(m -> runOne(m, f)); .forEach(m -> runOne(m, f));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment