git clone https://github.com/PatrickHeneise/oauth2api
npm install
Create default client and a user
db/setup.sh
Create SSL certificates for localhost and put them in cert/
- LocalStrategy (server): Handle initial user/password login
- BasicStrategy/ClientPasswordStrategy (server): Get the client key/secret
- ExampleStrategy (consumer): Do the OAuth2 request
./start.sh
https://localhost:3000/start
- start
- login
- issue grant
- exchange grant with access token
- success
With <3 from Barcelona