mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
ContainerAuthentication needs "authenticated" built-in role.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11597 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
3907140d1c
commit
f9486afebc
3 files changed
+111
-4
No files matched your search
@@ -38,6 +38,7 @@ public final class ContainerAuthentication implements Authentication {
|
||||
if(request.isUserInRole(g))
|
||||
l.add(new GrantedAuthorityImpl(g));
|
||||
}
|
||||
l.add(AUTHENTICATED);
|
||||
authorities = l.toArray(new GrantedAuthority[l.size()]);
|
||||
}
|
||||
return authorities;
|
||||
@@ -67,7 +68,5 @@ public final class ContainerAuthentication implements Authentication {
|
||||
return getPrincipal();
|
||||
}
|
||||
|
||||
private static final GrantedAuthority[] ADMIN_AUTHORITY = {new GrantedAuthorityImpl("admin")};
|
||||
// Acegi doesn't like empty array, so we need to set something
|
||||
private static final GrantedAuthority[] NO_AUTHORITY = {new GrantedAuthorityImpl("authenticated")};
|
||||
private static final GrantedAuthorityImpl AUTHENTICATED = new GrantedAuthorityImpl("authenticated");
|
||||
}
|
||||
Reference in new issue
Block a user