Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-13600] API token authentication was broken in 1.461.
  • Loading branch information
kohsuke committed Apr 25, 2012
1 parent 1868960 commit fdaee7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -63,6 +63,9 @@
<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>)
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/security/ACL.java
Expand Up @@ -130,7 +130,7 @@ public String toString() {
*/
public static SecurityContext impersonate(Authentication auth) {
SecurityContext old = SecurityContextHolder.getContext();
SecurityContextHolder.setContext(new NotSerilizableSecurityContext(ACL.SYSTEM));
SecurityContextHolder.setContext(new NotSerilizableSecurityContext(auth));
return old;
}
}

0 comments on commit fdaee7e

Please sign in to comment.