# HG changeset patch # User Bernhard Herzog # Date 1368205428 -7200 # Node ID 0c63ce5a7e7466fc13c1edbabd5e5b75ca869a55 # Parent 9ba54ae49cf4854b88621bb935aec8db26f22205 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. diff -r 9ba54ae49cf4 -r 0c63ce5a7e74 gwt-client/src/main/java/org/dive4elements/river/client/server/auth/saml/User.java --- 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 features, String password) { - this.setName(assertion.getUserID()); + this.setName(assertion.getNameID()); this.setAccount(assertion.getNameID()); this.setRoles(assertion.getRoles()); this.assertion = assertion;