Skip to content

dtjldamien/sample-oauth2

Repository files navigation

Sample OAuth 2.0 Express server

Sample OAuth 2.0 Express server to test connection and endpoints.

Installation

yarn

Usage

To test without scope or certificates

yarn start

To test with scope only

yarn start:scope

To test with certificates only

yarn start:cert

To test with scope and certificates

yarn start:cert-scope

Endpoints

Install Insomnia or Postman
Sample endpoints are available in ./endpoints, which can be imported into Insomnia. Add client certificates under Collection Settings with CRT as certs/client1-crt.pem and Key as certs/client1-key.pem for lvh.me:8002 and lvh.me:8003.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published