Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@node-oauth/oauth2-server
Advanced tools
Readme
Complete, compliant and well tested module for implementing an OAuth2 server in Node.js.
NOTE: This project has been forked from oauthjs/node-oauth2-server and is a continuation due to the project appearing to be abandoned. Please see our issue board to talk about next steps and the future of this project.
npm install @node-oauth/oauth2-server
The @node-oauth/oauth2-server
module is framework-agnostic but there are several officially supported wrappers available for popular HTTP server frameworks such as Express and Koa (not maintained by us).
If you're using one of those frameworks it is strongly recommended to use the respective wrapper module instead of rolling your own.
authorization_code
, client_credentials
, refresh_token
and password
grant, as well as extension grants, with scopes.Documentation is hosted on Read the Docs. We have multiple versions of the docs available:
Please leave an issue if something is confusing or missing in the docs.
Most users should refer to our Express (active) or Koa (not maintained by us) examples.
More examples can be found here: https://github.com/14gasher/oauth-example
Beginning with version 5.x
we removed dual support for callbacks and promises.
With this version there is only support for Promises / async/await.
With this version we also bumped the engine
to Node 16 as 14 is now deprecated.
Version 4.x should not be hard-breaking, however, there were many improvements and fixes that may be incompatible with specific behaviour in <= 3.x
For more info, please read the changelog or open an issue, if you think something is unexpectedly not working.
This project supports the node versions along the NodeJS LTS releases, focusing on
Please read our contribution guide before taking actions. In any case, please open an issue before opening a pull request to find out whether your intended contribution will actually have a chance to be merged.
FAQs
Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js
The npm package @node-oauth/oauth2-server receives a total of 9,321 weekly downloads. As such, @node-oauth/oauth2-server popularity was classified as popular.
We found that @node-oauth/oauth2-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.