the first (primary) principal should be a unique identifier for the user

This commit is contained in:
Sebastian Sdorra
2012-08-29 17:58:41 +02:00
parent f657e9d55b
commit a1d83e6f82

View File

@@ -540,6 +540,10 @@ public class ScmRealm extends AuthorizingRealm
SimplePrincipalCollection collection = new SimplePrincipalCollection();
/*
* the first (primary) principal should be a unique identifier
*/
collection.add(user.getId(), NAME);
collection.add(user, NAME);
collection.add(new Groups(groups), NAME);