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

Update the plugin for OAuth #25

Merged
merged 6 commits into from
Jul 7, 2013
Merged

Update the plugin for OAuth #25

merged 6 commits into from
Jul 7, 2013

Conversation

watsonian
Copy link
Contributor

This updates the plugin to reference OAuth tokens rather than the old deprecated API tokens and is dependent on the changes in hub4j/github-api#33.

@buildhive
Copy link

Jenkins » github-plugin #31 FAILURE
Looks like there's a problem with this pull request
(what's this?)

@buildhive
Copy link

Jenkins » github-plugin #32 FAILURE
Looks like there's a problem with this pull request
(what's this?)

@watsonian
Copy link
Contributor Author

That's going to continue to fail until hub4j/github-api#33 is merged and released.

GitHub gitHub;
if (Util.fixEmpty(apiUrl) != null) {
gitHub = GitHub.connectToEnterprise(apiUrl,username,apiToken);
gitHub = GitHub.connectToEnterprise(apiUrl,username,oauthAccessToken);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be GitHub.connectToEnterprise(apiUrl,oauthAccessToken) to match login()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! I'm pretty swamped with work at the moment, but will take a look once I'm able to surface for some air.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that it should be GitHub.connectToEnterprise(apiUrl,oauthAccessToken) I made that change locally and saw everything with my github enterprise start working

@ndeloof
Copy link
Contributor

ndeloof commented May 8, 2013

github-api-1.42 now includes the required fix

@joshughes
Copy link

https://issues.jenkins-ci.org/browse/JENKINS-17240
I think this PR will resolve this issue.

Also, updating to github-api-1.42 and making these changes makes everything work nicely.

@buildhive
Copy link

Jenkins » github-plugin #40 FAILURE
Looks like there's a problem with this pull request
(what's this?)

@buildhive
Copy link

Jenkins » github-plugin #41 SUCCESS
This pull request looks good
(what's this?)

@watsonian
Copy link
Contributor Author

Looks like we're good to go here! @kohsuke could you take a look?

@kohsuke kohsuke merged commit f298353 into jenkinsci:master Jul 7, 2013
@watsonian watsonian deleted the oauth branch July 8, 2013 17:04
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.

8 participants