From f6648a2d06cb6ccf419d62c8c04dae863f084e42 Mon Sep 17 00:00:00 2001
From: Matthias Piepkorn <mpiepk@gmail.com>
Date: Sat, 21 Jul 2018 09:10:55 +0000
Subject: [PATCH] update to Keycloak 4.1.0.Final

---
 src/main/java/org/keycloak/protocol/cas/mappers/HardcodedClaim.java |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/keycloak/protocol/cas/mappers/HardcodedClaim.java b/src/main/java/org/keycloak/protocol/cas/mappers/HardcodedClaim.java
index df7000c..42c7535 100644
--- a/src/main/java/org/keycloak/protocol/cas/mappers/HardcodedClaim.java
+++ b/src/main/java/org/keycloak/protocol/cas/mappers/HardcodedClaim.java
@@ -54,13 +54,7 @@
 
     @Override
     public void setAttribute(Map<String, Object> attributes, ProtocolMapperModel mappingModel, UserSessionModel userSession) {
-        String protocolClaim = mappingModel.getConfig().get(TOKEN_CLAIM_NAME);
-        if (protocolClaim == null) {
-            return;
-        }
-        String attributeValue = mappingModel.getConfig().get(CLAIM_VALUE);
-        if (attributeValue == null) return;
-        attributes.put(protocolClaim, OIDCAttributeMapperHelper.mapAttributeValue(mappingModel, attributeValue));
+        setMappedAttribute(attributes, mappingModel, mappingModel.getConfig().get(CLAIM_VALUE));
     }
 
 }

--
Gitblit v1.9.1