jenkins_api_client icon indicating copy to clipboard operation
jenkins_api_client copied to clipboard

Feature Request - Follow User Federation Redirection

Open vikas027 opened this issue 8 years ago • 0 comments

I have configured Jenkins to authenticate (in my test environment) with Keycloak. following this wiki.

Thus, my Jenkins URL gets redirected to Keycloak URL Jenkins URL: http://192.168.0.15:8080 Keycloak URL: http://192.168.1.77

Now, when I try to connect Jenkins using my Jenkins credentials, I encounter below error

F, [2017-07-18T23:53:19.872212 #58520] FATAL -- : JenkinsApi::Exceptions::Unauthorized: Invalid credentials are provided.
/usr/local/var/rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/client.rb:782:in `handle_exception': Invalid credentials are provided. (JenkinsApi::Exceptions::Unauthorized)
        from /usr/local/var/rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/client.rb:377:in `api_get_request'
        from /usr/local/var/rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/job.rb:609:in `list_all'
        from abc.rb:23:in `<main>'

It might sound absurd, but is this something which can be handled thru the API client? If yes, please take this as a feature request. If not, feel free to close the issue :)

vikas027 avatar Jul 18 '17 14:07 vikas027