Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/saml/User.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 |
comparison
equal
deleted
inserted
replaced
6186:a07521dca5b5 | 6187:7bc35bbd8b27 |
---|---|
16 extends DefaultUser | 16 extends DefaultUser |
17 implements org.dive4elements.river.client.server.auth.User { | 17 implements org.dive4elements.river.client.server.auth.User { |
18 | 18 |
19 private Assertion assertion; | 19 private Assertion assertion; |
20 | 20 |
21 public User(Assertion assertion, List<String> features, String password) { | 21 public User(Assertion assertion, String samlXML, List<String> features, |
22 String password) { | |
22 this.setName(assertion.getNameID()); | 23 this.setName(assertion.getNameID()); |
23 this.setAccount(assertion.getNameID()); | 24 this.setAccount(assertion.getNameID()); |
24 this.setRoles(assertion.getRoles()); | 25 this.setRoles(assertion.getRoles()); |
25 this.assertion = assertion; | 26 this.assertion = assertion; |
27 this.setSamlXMLBase64(samlXML); | |
26 this.setAllowedFeatures(features); | 28 this.setAllowedFeatures(features); |
27 this.setPassword(password); | 29 this.setPassword(password); |
28 } | 30 } |
29 | 31 |
30 @Override | 32 @Override |