You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2021/01/26 15:31:45 UTC
[syncope] branch master updated: Align with upstream CAS changes
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 7dad3b0 Align with upstream CAS changes
7dad3b0 is described below
commit 7dad3b04501110e3924226f1af13bb59389d384c
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Jan 26 16:31:34 2021 +0100
Align with upstream CAS changes
---
.../java/org/apache/syncope/wa/starter/mapping/OIDCRPTOMapper.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPTOMapper.java b/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPTOMapper.java
index 3dc1c36..25aaf27 100644
--- a/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPTOMapper.java
+++ b/wa/starter/src/main/java/org/apache/syncope/wa/starter/mapping/OIDCRPTOMapper.java
@@ -116,9 +116,9 @@ public class OIDCRPTOMapper implements ClientAppMapper {
LOG.warn("Could not locate the application context to add custom claims {}", customClaims);
} else {
CasConfigurationProperties properties = ctx.getBean(CasConfigurationProperties.class);
- List<String> supportedClaims = properties.getAuthn().getOidc().getClaims();
+ List<String> supportedClaims = properties.getAuthn().getOidc().getDiscovery().getClaims();
if (!supportedClaims.containsAll(customClaims)) {
- properties.getAuthn().getOidc().setClaims(
+ properties.getAuthn().getOidc().getDiscovery().setClaims(
Stream.concat(supportedClaims.stream(), customClaims.stream()).
distinct().collect(Collectors.toList()));
}