You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "andrea-patricelli (via GitHub)" <gi...@apache.org> on 2023/02/22 13:37:51 UTC

[GitHub] [syncope] andrea-patricelli commented on a diff in pull request #413: [SYNCOPE-1732] Support generic access policy configuration through BeanPanel

andrea-patricelli commented on code in PR #413:
URL: https://github.com/apache/syncope/pull/413#discussion_r1114337579


##########
wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/DefaultAccessMapper.java:
##########
@@ -43,10 +45,12 @@ public RegisteredServiceAccessStrategy build(final AccessPolicyTO policy) {
         accessStrategy.setUnauthorizedRedirectUrl(conf.getUnauthorizedRedirectUrl());
 
         conf.getRequiredAttrs().forEach(
-                attr -> accessStrategy.getRequiredAttributes().put(attr.getSchema(), new HashSet<>(attr.getValues())));
+                (k, v) -> accessStrategy.getRequiredAttributes().put(k,
+                        new HashSet<>(Set.of(StringUtils.split(v, ",")))));

Review Comment:
   sure



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@syncope.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org