提交 5ce67c3b 编写于 作者: K kohsuke

Updated the comment after seeing http://www.nabble.com/SYSTEM-authentication-td20988049.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13657 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4f987c2d
...@@ -5,8 +5,8 @@ import org.acegisecurity.Authentication; ...@@ -5,8 +5,8 @@ import org.acegisecurity.Authentication;
import org.acegisecurity.providers.UsernamePasswordAuthenticationToken; import org.acegisecurity.providers.UsernamePasswordAuthenticationToken;
import org.acegisecurity.acls.sid.PrincipalSid; import org.acegisecurity.acls.sid.PrincipalSid;
import org.acegisecurity.acls.sid.Sid; import org.acegisecurity.acls.sid.Sid;
import org.acegisecurity.context.SecurityContextHolder;
import hudson.model.Hudson; import hudson.model.Hudson;
import hudson.model.Executor;
/** /**
* Gate-keeper that controls access to Hudson's model objects. * Gate-keeper that controls access to Hudson's model objects.
...@@ -78,10 +78,9 @@ public abstract class ACL { ...@@ -78,10 +78,9 @@ public abstract class ACL {
* of acting on behalf of an user, such as doing builds. * of acting on behalf of an user, such as doing builds.
* *
* <p> * <p>
* Technically speaking, this is probably a broken concept, because Hudson never * (Note that one of the features being considered is to keep track of who triggered
* does anything on its own; for example, it builds a project because someone * a build &mdash; so in a future, perhaps {@link Executor} will run on behalf of
* configures it or someone triggers it, so ideally Hudson should be impersonating * the user who triggered a build.)
* that user when executing things.
*/ */
public static final Authentication SYSTEM = new UsernamePasswordAuthenticationToken("SYSTEM","SYSTEM"); public static final Authentication SYSTEM = new UsernamePasswordAuthenticationToken("SYSTEM","SYSTEM");
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册