From 4da0d94b96e662b8dffe281d0a2de812f11cda71 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 10 May 2020 20:40:15 +0000 Subject: [PATCH] Filter potentially dangerous input in GitHub Actions workflows --- src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java index 30a37c6..3ef7754 100644 --- a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java +++ b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java @@ -10,12 +10,12 @@ @XmlAccessorType(XmlAccessType.FIELD) public class CASServiceResponseAuthenticationSuccess { private String user; + @XmlJavaTypeAdapter(AttributesMapAdapter.class) + private Map<String, Object> attributes; private String proxyGrantingTicket; @XmlElementWrapper @XmlElement(name="proxy") private List<String> proxies; - @XmlJavaTypeAdapter(AttributesMapAdapter.class) - private Map<String, Object> attributes; public String getUser() { return this.user; @@ -23,6 +23,14 @@ public void setUser(final String user) { this.user = user; + } + + public Map<String, Object> getAttributes() { + return this.attributes; + } + + public void setAttributes(final Map<String, Object> attributes) { + this.attributes = attributes; } public String getProxyGrantingTicket() { @@ -39,13 +47,5 @@ public void setProxies(final List<String> proxies) { this.proxies = proxies; - } - - public Map<String, Object> getAttributes() { - return this.attributes; - } - - public void setAttributes(final Map<String, Object> attributes) { - this.attributes = attributes; } } -- Gitblit v1.9.1