From 3b4b1b20d890ecdf931c4ecb865615fadc2800a6 Mon Sep 17 00:00:00 2001 From: Michael Gerber Date: Fri, 23 Oct 2015 09:41:03 +0200 Subject: [PATCH] expose client attributes in ClientBean --- .../org/keycloak/login/freemarker/model/ClientBean.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ClientBean.java b/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ClientBean.java index f10d031d07..a29271895b 100755 --- a/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ClientBean.java +++ b/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ClientBean.java @@ -4,6 +4,7 @@ import org.keycloak.models.ClientModel; import org.keycloak.services.util.ResolveRelative; import java.net.URI; +import java.util.Map; /** * @author Bill Burke @@ -32,4 +33,11 @@ public class ClientBean { return ResolveRelative.resolveRelativeUri(requestUri, client.getRootUrl(), client.getBaseUrl()); } + public Map getAttributes(){ + return client.getAttributes(); + } + + public String getAttribute(String key){ + return client.getAttribute(key); + } }