Mercurial > dive4elements > river
changeset 5983:0c63ce5a7e74
Use name id as username in saml.User.
The old WAS-only code used the user-name typed in by the user when
logging in. When logging in via SAML single sign on, we must extract the
user name from the SAML ticket and the name ID should basically be what
the user types in when authenticating.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 10 May 2013 19:03:48 +0200 (2013-05-10) |
parents | 9ba54ae49cf4 |
children | 45bcc127e7df |
files | gwt-client/src/main/java/org/dive4elements/river/client/server/auth/saml/User.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/auth/saml/User.java Fri May 10 17:44:59 2013 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/auth/saml/User.java Fri May 10 19:03:48 2013 +0200 @@ -19,7 +19,7 @@ private Assertion assertion; public User(Assertion assertion, List<String> features, String password) { - this.setName(assertion.getUserID()); + this.setName(assertion.getNameID()); this.setAccount(assertion.getNameID()); this.setRoles(assertion.getRoles()); this.assertion = assertion;