comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/DefaultUser.java @ 6187:7bc35bbd8b27

Store the SAML ticket in the user object after authentication. The SAML ticket will be needed to allow single sign-on to work for the links into the wiki that are used in several places in the UI. Part of flys/issue1265
author Bernhard Herzog <bh@intevation.de>
date Tue, 04 Jun 2013 17:13:50 +0200
parents ea9eef426962
children d6d5ca6d4af0
comparison
equal deleted inserted replaced
6186:a07521dca5b5 6187:7bc35bbd8b27
14 implements User 14 implements User
15 { 15 {
16 protected String name; 16 protected String name;
17 protected String account; 17 protected String account;
18 protected String password; 18 protected String password;
19 protected String samlXML;
19 protected boolean expired; 20 protected boolean expired;
20 protected List<String> roles; 21 protected List<String> roles;
21 protected List<String> features; 22 protected List<String> features;
22 23
23 public DefaultUser() { 24 public DefaultUser() {
24 } 25 }
25 26
26 public DefaultUser( 27 public DefaultUser(
27 String name, 28 String name,
28 String password, 29 String password,
30 String samlXML,
29 boolean expired, 31 boolean expired,
30 List<String> roles, 32 List<String> roles,
31 List<String> features 33 List<String> features
32 ) { 34 ) {
33 this.name = name; 35 this.name = name;
34 this.password = password; 36 this.password = password;
37 this.samlXML = samlXML;
35 this.expired = expired; 38 this.expired = expired;
36 this.roles = roles; 39 this.roles = roles;
37 this.features = features; 40 this.features = features;
38 this.account = name; 41 this.account = name;
39 } 42 }
90 } 93 }
91 94
92 public void setAccount(String account) { 95 public void setAccount(String account) {
93 this.account = account; 96 this.account = account;
94 } 97 }
98
99 @Override
100 public String getSamlXMLBase64() {
101 return this.samlXML;
102 }
103
104 public void setSamlXMLBase64(String samlXML) {
105 this.samlXML = samlXML;
106 }
95 } 107 }
96 // vim:set ts=4 sw=4 si et fenc=utf8 tw=80: 108 // vim:set ts=4 sw=4 si et fenc=utf8 tw=80:

http://dive4elements.wald.intevation.org