add defaults in case of missing attributes
This commit is contained in:
parent
a5295da1bf
commit
a593351568
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue