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

How to authenticate using oauth in code? #405

Closed
m00nwtchr opened this issue Jan 5, 2018 · 1 comment
Closed

How to authenticate using oauth in code? #405

m00nwtchr opened this issue Jan 5, 2018 · 1 comment

Comments

@m00nwtchr
Copy link

m00nwtchr commented Jan 5, 2018

Hello I have 2fa auth enabled on my acc and because of that I need to auth using oauth (and I'd also like for the creds to be hard coded but I wont do that with my pass). This is what I have tried to do that:

           GitHub github = new GitHubBuilder().withOAuthToken("TOKEN", "EMAIL").build();

but it just thrown an error.
Please help

EDIT:
another question:
is it possible to auth using client secret and id? (https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications)

@kohsuke
Copy link
Collaborator

kohsuke commented Jan 13, 2018

Issue tracker is not a place to do Q&A.

@kohsuke kohsuke closed this as completed Jan 13, 2018
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

No branches or pull requests

2 participants