jenkins-control-plugin
jenkins-control-plugin copied to clipboard
Doesn't work when Jenkins is using Github OAUTH plugin for authentication
https://wiki.jenkins-ci.org/display/JENKINS/Github+OAuth+Plugin
Returns Status Code: 401 Exception: Unexpected authentication type: org.acegisecurity.providers.UsernamePasswordAuthenticationToken@e8133c3: Username: HGuillen217; Password: [PROTECTED]; Authenticated: false; Details: org.acegisecurity.ui.WebAuthenticationDetails@0: RemoteIpAddress: 23.31.128.233; SessionId: null; Not granted any authorities Stacktrace: (none)
The current version of the plugin use HttpClient 3.1 to handle connections. The Github OAUTHl could not be supported by this lib. I will see what I can do.
Hi,
Dealing with http-commons 3.0 is quite tricky. When IntelliJ migrates to the 4.0, I will update the source code.
Sorry,
David
When you start working on this, please, don't forget about the Assembla plugin, it uses OAuth too.
When you start working on this, please, don't forget about the Assembla plugin, it uses OAuth too.
Hi JC,
Thanks for mentioning that.
You may need to make some "lobbying actions" on Jetbrains team to migrate HttpClient to 4.0 if you want the plugin supports OAuth ;)
Regards,
David
Hi,
I use gmail to be authenticated, but it doesn't work :
Status Code: 401
Exception: Unexpected authentication type: org.acegisecurity.providers.UsernamePasswordAuthenticationToken@d1cf1333: Username: [email protected]; Password: [PROTECTED]; Authenticated: false; Details: org.acegisecurity.ui.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Not granted any authorities Stacktrace:
(none)
Generated by Winstone Servlet Engine v0.9.10 at Mon Sep 16 17:36:31 CEST 2013
Same issue ?
stack :
Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(962,814),absolute(1305,940),button=1,modifiers=Button1,clickCount=1] on dialog15: Unauthorized -> Missing or bad credentials
org.codinjutsu.tools.jenkins.security.AuthenticationException: Unauthorized -> Missing or bad credentials
at org.codinjutsu.tools.jenkins.security.DefaultSecurityClient.checkResponse(DefaultSecurityClient.java:156)
at org.codinjutsu.tools.jenkins.security.BasicSecurityClient.doAuthentication(BasicSecurityClient.java:73)
at org.codinjutsu.tools.jenkins.security.BasicSecurityClient.connect(BasicSecurityClient.java:47)
at org.codinjutsu.tools.jenkins.logic.RequestManager.authenticate(RequestManager.java:156)
at org.codinjutsu.tools.jenkins.view.BrowserPanel.reloadConfiguration(BrowserPanel.java:337)
at org.codinjutsu.tools.jenkins.JenkinsWindowManager.reloadConfiguration(JenkinsWindowManager.java:90)
at org.codinjutsu.tools.jenkins.JenkinsComponent.apply(JenkinsComponent.java:87)
at com.intellij.openapi.options.newEditor.OptionsEditor.apply(OptionsEditor.java:762)
at com.intellij.openapi.options.newEditor.OptionsEditorDialog.doOKAction(OptionsEditorDialog.java:153)
at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:1656)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1623)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
at java.awt.Dialog.show(Dialog.java:1082)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:706)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:399)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1460)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1435)
at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:64)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:160)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:78)
at org.codinjutsu.tools.jenkins.view.action.OpenPluginSettingsAction.showSettingsFor(OpenPluginSettingsAction.java:46)
at org.codinjutsu.tools.jenkins.view.action.OpenPluginSettingsAction.actionPerformed(OpenPluginSettingsAction.java:42)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:169)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:132)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
I am having this issue with Jenkins server instance on CloudBees. I use my Github credentials to log into CloudBees. Is there any workaround or fix for this?
Hi,
Unfortunately, Intellij embeds old HttpClient 3.3 which does not handle OATH and there is no plan to migrate to the latest 4.0 because many code (and plugin) still use the 3.3 version
The API of the 4.0 has changed of lot, so I could try to use it and check what's happen when both versions run at the same time ^_^'.
Currently, I do not have much time to work on it. mongo4idea takes me time, other side projects too.
Please be patient.
Regards,
David
Just curious-- any hopes of revisiting this anytime soon?
Hi @IgorGanapolsky / @dboissier , I know it's been about a year since this has been addressed, but any chance to revisit this issue?
thanks
HI @dboissier , any news regarding this issue. I am using webstrom 2016.3.1 and since jenkins doesn't support both Github oauth and user password, I can't use the plugin.
It looks awesome.
I'm not sure, but you can use email as 'user' and jenkins api token as 'password'
Using my email as 'user' didn't work, but using my username alongside my jenkins api token as password did.
+1 I'm also unable to use your plugin as we use GitHub OAuth. Good work so far on the plugin!
Hi @dboissier. The project seems promising, but unfortunately it still cannot connect to Jenkins with Github OAuth plugin. Is there any chance to have such feature in future releases?
Any plans for adding support for GitHub login?
Yes but not in next releases. Want to support github and openshift
Great! Is there a workaround available for those who have GH auth enabled? I would really like to use this plugin.
Had to look for a workaround. This could happen at earliest monday
I've do an short test. If you create an API Token in Jenkins and use this it will work also with Github Auth.
Can you confirm this?
Works with latest release.
see #467