simov / grant

OAuth Proxy
MIT License
4.09k stars 257 forks source link

How to install / getting started #245

Closed maxwellmckinnon closed 3 years ago

maxwellmckinnon commented 3 years ago

I'm at a loss for how to use this. I'd like to use it to handle the OAuth for the Strava API for my small Strava web app site. The playground demo does exactly what I need. (I'm a noobie web dev, first web project).

If it's something complicated, I'd be willing to write up a GettingStarted.md and link to it from the main readme.

simov commented 3 years ago

Check out this article, it touches a little bit on what you need to do in the browser as well.

Such guide can't be part of this repository as it's out of scope, and then also impossible to cover all frontend frameworks and nuances. Start with a blank page and try to get it working with vanilla javascript using the example in that article. It's really a few lines of code. Once you get that working and understand how it works, then you can apply your knowledge on any frontend framework.

Also this example have a login form in it. Once you start the server you can navigate to the /login route. This is exactly what the playground app is doing as well.

maxwellmckinnon commented 3 years ago

That's the very article that led me to this repo ;)

Haha thanks! I ended up getting it working thanks to http://www.passportjs.org/packages/passport-strava/