Skip to content

Commit

Permalink
Merge pull request #83 from jenkinsci/fix-transport-auth
Browse files Browse the repository at this point in the history
[JENKINS-43822] Fix Jenkins CLI transport auth
  • Loading branch information
samrocketman committed May 2, 2017
2 parents 05313d0 + 8d7c27e commit 72075ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jenkinsci/plugins/GithubSecurityRealm.java
Expand Up @@ -520,8 +520,8 @@ public CliAuthenticator createCliAuthenticator(final CLICommand command) {

public Authentication authenticate() throws AuthenticationException, IOException, InterruptedException {
if(userName == null) {
//return command.getTransportAuthentication(); // no authentication parameter. fallback to the transport
return Jenkins.ANONYMOUS;
// no authentication parameter. fallback to the transport
return command.getTransportAuthentication();
}
if(passwordFile != null) {
try {
Expand Down

0 comments on commit 72075ba

Please sign in to comment.