You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2022/09/03 09:34:31 UTC

[syncope] 01/01: fix build issues

This is an automated email from the ASF dual-hosted git repository.

mmoayyed pushed a commit to branch cas66
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit a800b30fa44956cb72656c86550c4e4c0613db5f
Author: Misagh Moayyed <mm...@gmail.com>
AuthorDate: Sat Sep 3 13:34:16 2022 +0400

    fix build issues
---
 .../syncope/wa/starter/mapping/OIDCRPClientAppTOMapper.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPClientAppTOMapper.java b/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPClientAppTOMapper.java
index 458faabc04..913999d849 100644
--- a/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPClientAppTOMapper.java
+++ b/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPClientAppTOMapper.java
@@ -87,13 +87,13 @@ public class OIDCRPClientAppTOMapper extends AbstractClientAppMapper {
         } else {
             chain = new ChainingAttributeReleasePolicy();
             if (attributeReleasePolicy != null) {
-                chain.addPolicy(attributeReleasePolicy);
+                chain.addPolicies(attributeReleasePolicy);
             }
 
-            chain.addPolicy(new OidcProfileScopeAttributeReleasePolicy());
-            chain.addPolicy(new OidcEmailScopeAttributeReleasePolicy());
-            chain.addPolicy(new OidcAddressScopeAttributeReleasePolicy());
-            chain.addPolicy(new OidcPhoneScopeAttributeReleasePolicy());
+            chain.addPolicies(new OidcProfileScopeAttributeReleasePolicy(),
+                new OidcEmailScopeAttributeReleasePolicy(),
+                new OidcAddressScopeAttributeReleasePolicy(),
+                new OidcPhoneScopeAttributeReleasePolicy());
 
             Set<String> customClaims = clientApp.getReleaseAttrs().values().stream().
                     map(Objects::toString).collect(Collectors.toCollection(HashSet::new));
@@ -110,7 +110,7 @@ public class OIDCRPClientAppTOMapper extends AbstractClientAppMapper {
                                     distinct().collect(Collectors.toList()));
                 }
 
-                chain.addPolicy(new OidcCustomScopeAttributeReleasePolicy(
+                chain.addPolicies(new OidcCustomScopeAttributeReleasePolicy(
                         CUSTOM_SCOPE, customClaims.stream().collect(Collectors.toList())));
             }
         }