mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 17:15:59 +00:00
[FIXED JENKINS-13600] API token authentication was broken in 1.461.
This commit is contained in:
1 parent
18689607a8
commit
fdaee7eba3
2 files changed
+4
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user