-
Notifications
You must be signed in to change notification settings - Fork 257
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
OAuth Playground Source #61
Comments
No, I haven't open sourced the showcase app yet. But with the amount of docs and examples here it shouldn't be that hard to figure out what I have on the server. The first thing is to have configuration for each provider, but in this case I have only the provider's application The rest of the code is in the browser, I have a web form that makes POST request to the connect route using the Dynamic Override feature. The actual form fields come from yet another JSON configuration that I have compiled by reading each and every provider's developer docs. |
Most excellent! Thanks for the detailed response :) |
@simov I’m currently learning |
Maybe you can have a look at the articles listed in this thread #202, specifically this one https://dev.to/simov/oauth-like-a-boss-2m3b. It has an example of how to extract the access token from the callback URL. Try this:
That's basically what the OAuth Playground app does. Then you can start playing around with different things: maybe you want to add a little bit of logic in your server routes, or maybe you want to send some dynamic parameters from the browser to configure the login flow. How are you going to persist the user session? Are you going to use a cookie or localStorage, and so on. Note that for all of those basic cases, at least on the server side, you can simply copy/paste an example from the examples folder, configure it and start using it. Separate example repositories are available for every cloud environment, you can find the links at the bottom of the Handlers section https://github.com/simov/grant#handlers |
Hey @simov, have you open sourced the code for the OAuth playground?
Great project 🚀
The text was updated successfully, but these errors were encountered: