[FIXED JENKINS-13600] API token authentication was broken in 1.461.

This commit is contained in:
Kohsuke Kawaguchi committed 2012-04-25 15:16:57 -07:00
1 parent 18689607a8
commit fdaee7eba3
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -63,6 +63,9 @@ Upcoming changes</a>
<div id="rc" style="display:none;"><!--=BEGIN=-->
<h3><a name=v1.462>What's new in 1.462</a> <!--=DATE=--></h3>
<ul class=image>
<li class=bug>
API token authentication was broken in 1.461
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13600">issue 13600</a>)
<li class=rfe>
Added the filter textbox to the update center selector.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13476">issue 13476</a>)
+1 -1
View File
@@ -130,7 +130,7 @@ public abstract class ACL {
*/
public static SecurityContext impersonate(Authentication auth) {
SecurityContext old = SecurityContextHolder.getContext();
SecurityContextHolder.setContext(new NotSerilizableSecurityContext(ACL.SYSTEM));
SecurityContextHolder.setContext(new NotSerilizableSecurityContext(auth));
return old;
}
}