[JIRA] (JENKINS-55815) Allow API access with Google Login Plugin

4 views
Skip to first unread message

robert@mobilabsolutions.com (JIRA)

unread,
Jan 28, 2019, 10:23:01 AM1/28/19
to jenkinsc...@googlegroups.com
Robert Rabe created an issue
 
Jenkins / New Feature JENKINS-55815
Allow API access with Google Login Plugin
Issue Type: New Feature New Feature
Assignee: Ryan Campbell
Components: google-login-plugin
Created: 2019-01-28 15:22
Labels: google-login API
Priority: Minor Minor
Reporter: Robert Rabe

Currently, it seems that it is not possible to use the Jenkins Remote Access API when authentication with the Google Login Plugin. I believe that allowing such access would be beneficial.

Indeed, to me (no experience in Jenkins plugin development), it seems like implementation for this functionality has already been started but is still commented out and below a TODO marking here.

The way that the GitHub OAuth Plugin handles this case (by allowing username/password to be GitHub username and GitHub token) works very well for us.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

rcampbell@cloudbees.com (JIRA)

unread,
Jan 28, 2019, 12:03:03 PM1/28/19
to jenkinsc...@googlegroups.com
Ryan Campbell commented on New Feature JENKINS-55815
 
Re: Allow API access with Google Login Plugin

This is already possible by setting an API key for your user.

https://support.cloudbees.com/hc/en-us/articles/115003090592-How-to-re-generate-my-Jenkins-user-token

There isn't a way to authenticate with your Google password via API that I'm aware of anyway. But the above should work fine.

rcampbell@cloudbees.com (JIRA)

unread,
Jan 28, 2019, 12:04:03 PM1/28/19
to jenkinsc...@googlegroups.com
Ryan Campbell closed an issue as Won't Do
 

Please reopen with details on why the Jenkins API key is insufficient

Change By: Ryan Campbell
Status: Open Closed
Resolution: Won't Do

samduke474@gmail.com (JIRA)

unread,
Mar 3, 2020, 4:43:03 PM3/3/20
to jenkinsc...@googlegroups.com
Sam Duke commented on New Feature JENKINS-55815
 
Re: Allow API access with Google Login Plugin

I'm slightly confused why this was closed, the linked code (https://github.com/jenkinsci/google-login-plugin/blob/master/src/main/java/org/jenkinsci/plugins/googlelogin/GoogleOAuth2SecurityRealm.java#L313) shows that API key authentication isn't implemented for the google-login plugin

Ryan Campbell would you mind looking into this again - I'm struggling to use CURL with our jenkins instance and I believe it is down to this issue.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

samduke474@gmail.com (JIRA)

unread,
Mar 3, 2020, 4:44:03 PM3/3/20
to jenkinsc...@googlegroups.com
Sam Duke reopened an issue
 
Change By: Sam Duke
Resolution: Won't Do
Status: Closed Reopened
Reply all
Reply to author
Forward
0 new messages