Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-43822] Fix Jenkins CLI transport auth
This fixes using authentication in the following ways using HTTP
transport auth and SSH authentication.
  • Loading branch information
samrocketman committed Apr 29, 2017
1 parent 4aea814 commit 4690bfb
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 4690bfb

Please sign in to comment.