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

[Question] PassportJS and passport-oauth2 #45

Closed
RobertCGouge opened this issue Sep 5, 2017 · 9 comments
Closed

[Question] PassportJS and passport-oauth2 #45

RobertCGouge opened this issue Sep 5, 2017 · 9 comments
Labels

Comments

@RobertCGouge
Copy link

I apologize if this is not the place to ask this question. Has anybody gotten passport-oauth2 to work inside of an Express app to authenticate against Bungie's oAuth workflow? I get all the way to callbackURL and Passport throws an error that it cannot parse the response.

@RobertCGouge RobertCGouge changed the title PassportJS and passport-oauth2 [Question] PassportJS and passport-oauth2 Sep 5, 2017
@vthornheart-bng
Copy link
Contributor

Hmm, unfortunately I've never used PassportJS, so I may be of limited help here. But if you have an example of the response you're getting that it's having trouble parsing, and the request you sent that generated that response, that might help reveal the underlying issue! (Just XXX out any private information that may be in the request/response when you post it here!)

@ckhicks
Copy link

ckhicks commented Sep 6, 2017

I've been messing with Auth0 for this as well - things are looking good there but I haven't tried PassportJS yet.

@RobertCGouge
Copy link
Author

I've tried to log the request and the response, but I think that is slightly beyond my current level of technical knowledge. I am going to try to just write my own little function to see if I can get anything back from the TokenURL.

@vthornheart-bng
Copy link
Contributor

Hmm, it sounds like some other people are looking for NodeJS oauth libraries that work - did either of you guys get things working? If so, what did the problem turn out to be? If not, perhaps we can help diagnose (with the understanding that I've never used NodeJS or any of these libraries, so I'll only be able to help if there's an issue such as pointing to the wrong URL and what-not)

@ckhicks
Copy link

ckhicks commented Sep 9, 2017 via email

@RobertCGouge
Copy link
Author

Sadly, I think my lack of Javascript knowledge is going to cause me to bow out of trying to help get Passport JS working. I am unsure of how to go about capturing the response that comes back after I initiated the OAuth flow.

@vthornheart-bng
Copy link
Contributor

Sweet @ckhicks - yeah, if you guys find any awkwardness/unusual implementation problems with our OAuth that we can work on our side, let us know.

Understandable @RobertCGouge, if you do find a way to capture it definitely update here and we'll try to help.

@ckhicks
Copy link

ckhicks commented Sep 14, 2017

After messing with Auth0 quite a bit, I finally got an authorization token to return to my browser-based app. Requesting a refresh token after that should be cake, but I think there's a need for more JS solutions for interacting with the API due to CORS issues (historically solved with something like this) and a few other hiccups.

Since solutions like Passport JS require knowledge of server-side JS, and tools like Auth0 only allow 7,000 users in their free tier, I'm considering filling the hole with a simple service others can use to jump straight in and start building.

Ideally, one could save their creds in a safe area, embed a script, and hit authorized endpoints that don't require the robust communication involved in the OAuth flow. Getting more browser apps and Chrome Extensions out there would be amazing if they had full OAuth permissions without the setup time!

@Tetron-bng
Copy link

Hopefully this question has been answered. Please reopen if there is more to know.

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

No branches or pull requests

4 participants