Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for oauth token and a way to see my organizations #1

Merged
merged 2 commits into from
Jul 11, 2011

Conversation

mocleiri
Copy link
Collaborator

I've written a github oauth authentication plugin for jenkins and I used github-api for the interactions with github once I have the token.

My first pass implementation of the plugin works so I want to contribute the github-api changes back.

Changes:

  1. setup the Github class using the oauth token.
  2. get a list of organizations that the current user belongs to.

This requires some changes as there is no login and password
but instead a token at a certain priviledge level.
Add JsonOrganizations to support getting a list of my organizations.

Because Github.login is needed we fetch it during the Github.connectUsingOAuth() method.
@kohsuke kohsuke merged commit 2f97393 into hub4j:master Jul 11, 2011
@kohsuke
Copy link
Collaborator

kohsuke commented Jul 11, 2011

Thanks for the change! Merged and released 1.10. I also set you up with the push access.

@mocleiri
Copy link
Collaborator Author

Thanks.

I think you still have to release the 1.10 version inside the oss.sonatype.org management interface.

At first I thought the artifact hadn't sync'd into central but searching for github-api doesn't show the 1.10 version either:
https://oss.sonatype.org/index.html#nexus-search;quick~github-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants