
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
oauth2-server2
Advanced tools
Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js
[![oauthjs Slack][slack-image]][slack-url]
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 continuition due to the project appearing to be abandoned. Please see this issue to talk about next steps and the future of this project.
npm install oauth2-server2
The oauth2-server2 module is framework-agnostic but there are several officially supported wrappers available for popular HTTP server frameworks such as Express and Koa. 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.
Most users should refer to our Express or Koa examples.
More examples can be found here: https://github.com/14gasher/oauth-example
This module has been rewritten using a promise-based approach, introducing changes to the API and model specification. v2.x is no longer supported.
Please refer to our 3.0 migration guide for more information.
To run the test suite, install dependencies, then run npm test
:
npm install
npm test
FAQs
Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js
The npm package oauth2-server2 receives a total of 0 weekly downloads. As such, oauth2-server2 popularity was classified as not popular.
We found that oauth2-server2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.