From cbb2f2f81452a97fddbdcc1f6010fbc85682e3b3 Mon Sep 17 00:00:00 2001
From: Erlend Hamnaberg <erlend@hamnaberg.net>
Date: Thu, 29 Nov 2018 07:42:20 +0000
Subject: [PATCH] Redirect to application after login is complete

---
 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