Complete, compliant and well tested module for implementing an OAuth2 server in Node.js.
npm install @fireguard/oauth2-server
- Supports
authorization_code
,client_credentials
,refresh_token
andpassword
grant, as well as extension grants, with scopes. - Can be used with promises, Node-style callbacks, ES6 generators and async/await.
- Fully RFC 6749 and RFC 6750 compliant.
- Implicitly supports any form of storage, e.g. PostgreSQL, MySQL, MongoDB, Redis, etc.
- Complete test suite.
To run the test suite, install dependencies, then run npm test
:
npm install
npm test