jenkins-control-plugin icon indicating copy to clipboard operation
jenkins-control-plugin copied to clipboard

login fails with OpenShift login redirect

Open diman82 opened this issue 4 years ago • 7 comments

My jenkins instance is running as a pod in OpenShift, and login is done using OpenShift credentials. But login fails with this plugin.

Is there a way to configure plugin to authenticate through OpenShift?

diman82 avatar May 23 '20 13:05 diman82

Have not tested it yet. Is your server available for test. If not I have to create a own to test

MCMicS avatar May 23 '20 13:05 MCMicS

My server is in an enterprise environment, so a bit limited..

diman82 avatar May 23 '20 13:05 diman82

Have you tried to use an jenkins api token for login? Or get you some error message during login?

Do you also use this plugin: https://github.com/openshift/jenkins-openshift-login-plugin

I will try to setup a test these days

MCMicS avatar May 23 '20 13:05 MCMicS

I've created Jenkins api token, but I can't input it, as I'm being redirected to Openshift login page. inputting api token in your plugin password field still yields 'bad credentials' (and no debug info).

Do you also use this plugin: https://github.com/openshift/jenkins-openshift-login-plugin

Yes, I think this is the correct plugin, but not 100% sure what is being used (I haven't been involved in the infrastructure setup.

Thanks, will wait for your results.

diman82 avatar May 24 '20 08:05 diman82

OAuth Token are currently not implemented

Maybe in some of the next releases

Similar like this: #50

MCMicS avatar May 24 '20 09:05 MCMicS

Could you try to use API token as Password.

In my setup it works (only PyCharm not works correctly)

MCMicS avatar Jun 08 '20 16:06 MCMicS

Could you try to use API token as Password.

In my setup it works (only PyCharm not works correctly)

Ok, it worked. P.S. It's required to add '-edit-view' to provided name, e.g. myname-edit-view

diman82 avatar Jun 10 '20 08:06 diman82

works with latest release:

Test instance: https://jenkins-mcmics-dev.apps.sandbox-m3.1530.p1.openshiftapps.com/

grafik grafik

MCMicS avatar Apr 03 '23 17:04 MCMicS