mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
store authentication token as principal
This commit is contained in:
@@ -563,6 +563,7 @@ public class ScmRealm extends AuthorizingRealm
|
|||||||
collection.add(user.getId(), NAME);
|
collection.add(user.getId(), NAME);
|
||||||
collection.add(user, NAME);
|
collection.add(user, NAME);
|
||||||
collection.add(new GroupNames(groups), NAME);
|
collection.add(new GroupNames(groups), NAME);
|
||||||
|
collection.add(token, NAME);
|
||||||
|
|
||||||
return new SimpleAuthenticationInfo(collection, token.getPassword());
|
return new SimpleAuthenticationInfo(collection, token.getPassword());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user