-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Github Enterprise - InternalOAuthError: Failed to obtain access token #57
Comments
Realized I needed to pass in two more options. Now receiving this error: |
@jaredhanson Should I assume that this repo is no longer maintained and fork our own version? |
Why would you assume that?
That error has nothing to do with this module, so forking won't help. It is in your application code. |
@jaredhanson passport-github was part of the error trace @ https://github.com/jaredhanson/passport-github/blob/master/lib/strategy.js#L174 |
I having same issue, could be because my machine is behid a corporate firewall?
|
binario200 so how did u resolve it? |
@rakesh113 At the begin I tried some workarrounds like setting proxy settings to the oauth request like as I documented here Then I realize that passport-github works very well but with the "public" Github (maybe some hardcode github.com urls). I was using Github Enterprise at my job so I finally decide to use simple-oauth2 to get authenticated by github enterprise and I finished with a solution like this
You can see the whole solution here |
This might be an enterprise specific issue perhaps?
Here is my code
passport.js
server.js
When I hit
/login/github
it bounces out to Github Enterprise, I give the app permissions, it then hits the callback and lands onhttp://127.0.0.1:3001/auth/github/callback?code=random_code
with the above error.Am I missing anything else? From what I understand (and I understand very little) it should obtain the token and I should be good to start hitting the GHE API.
Thanks!
The text was updated successfully, but these errors were encountered: