8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47e778 commit 6c9f6d9Copy full SHA for 6c9f6d9
src/main/java/org/jenkinsci/plugins/GithubSecurityRealm.java
@@ -659,7 +659,7 @@ public UserDetails loadUserByUsername(String username)
659
660
Authentication token = SecurityContextHolder.getContext().getAuthentication();
661
662
- if (token == null || username != token.getPrincipal()) {
+ if (token == null || !username.equals(token.getPrincipal())) {
663
if(localUser != null && GithubSecretStorage.contains(localUser)){
664
String accessToken = GithubSecretStorage.retrieve(localUser);
665
try {
0 commit comments