[JIRA] (JENKINS-48708) Username Password for OAuth based authentication

2 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 26, 2018, 3:28:31 AM2/26/18
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
 

KK does not maintain this plugin anymore. Moving to unassigned to set the expectation

Jenkins / Improvement JENKINS-48708
Username Password for OAuth based authentication
Change By: Oleg Nenashev
Assignee: Kohsuke Kawaguchi
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

meidan.alon@gmail.com (JIRA)

unread,
Jul 9, 2018, 10:10:02 AM7/9/18
to jenkinsc...@googlegroups.com
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

wayne.warren.s@gmail.com (JIRA)

unread,
Sep 21, 2018, 9:27:02 PM9/21/18
to jenkinsc...@googlegroups.com

A simple workaround for this problem:

```

curl https://api.github.com/authorizations --user $USERNAME --data '{"scopes":["user:email","read:org"],"note":"jenkins swarm clients"}'

```

You will be prompted to enter your password. The response will look something like:

```

{   ...   "token": "<TOKEN>"   ... }

```

You would then take the 'token' value from here for use as the `-password` field in the swarm client command line. That's all there is to it!

 

The token doesn't expire as far as I can tell; you can manually revoke it from the github web ui at https://github.com/settings/tokens. The `note` field in the abovementioned curl call ends up being the name of the token (attempting to obtain a new token with the same name will fail.

 

Come to think of it you don't need to use the above curl command since you can just generate a token at the same tokens url; it just needs `user:email` and `read:org` permissions.

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

me@basilcrow.com (JIRA)

unread,
Jun 1, 2019, 2:06:04 PM6/1/19
to jenkinsc...@googlegroups.com
Basil Crow updated an issue
 
Jenkins / New Feature JENKINS-48708
Change By: Basil Crow
Issue Type: Improvement New Feature

me@basilcrow.com (JIRA)

unread,
Jun 1, 2019, 2:15:03 PM6/1/19
to jenkinsc...@googlegroups.com
Basil Crow closed an issue as Duplicate
 

Duplicate of JENKINS-17144.

Change By: Basil Crow
Status: Open Closed
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages