mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
do not add _anonymous to group _authenticated / use AnonymousToken for anonymous access in authenticationFilter
This commit is contained in:
@@ -38,7 +38,10 @@ public class DefaultGroupCollector implements GroupCollector {
|
||||
public Set<String> collect(String principal) {
|
||||
ImmutableSet.Builder<String> builder = ImmutableSet.builder();
|
||||
|
||||
builder.add(AUTHENTICATED);
|
||||
if (principal != "_anonymous") {
|
||||
builder.add(AUTHENTICATED);
|
||||
}
|
||||
|
||||
builder.addAll(resolveExternalGroups(principal));
|
||||
appendInternalGroups(principal, builder);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user