Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🚀 The successor to oauthjs/oauth2-server. 🔒 Complete, compliant, maintained and well tested OAuth2 Server for node.js. Includes native async await and PKCE.

License

NotificationsYou must be signed in to change notification settings

node-oauth/node-oauth2-server

Complete, compliant and well tested module for implementing an OAuth2 server inNode.js.

TestsCodeQL Semantic AnalysisTests for ReleaseDocumentation StatusProject Status: Active – The project has reached a stable, usable state and is being actively developed.npm Versionnpm Downloads/WeekGitHub License

NOTE: This project has been forked fromoauthjs/node-oauth2-server and is a continuation due to the project appearing to be abandoned. Please seeour issue board to talk about next steps and the future of this project.

Installation

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 asExpress andKoa (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.

Features

  • Supportsauthorization_code,client_credentials,refresh_token andpassword grant, as well asextension grants, with scopes.
  • Can be used withpromises,ES6 generators andasync/await (usingBabel).
  • FullyRFC 6749 andRFC 6750 compliant.
  • Implicitly supports any form of storage, e.g.PostgreSQL,MySQL,MongoDB,Redis, etc.
  • Support for PKCE
  • Completetest suite.

Documentation

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.

Examples

Most users should refer to ourExpress (active) orKoa (not maintained by us) examples.

More examples can be found here:https://github.com/14gasher/oauth-example

Version 5 notes

Beginning with version5.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 theengine to Node 16 as 14 is now deprecated.

Migrating from OAuthJs and 3.x

Version 4.x should not be hard-breaking, however, there were many improvements and fixes that maybe incompatible with specific behaviour in <= 3.x

For more info, please read thechangelog or open an issue, if you think somethingis unexpectedly not working.

Supported NodeJs versions

This project supports the node versions along theNodeJS LTS releases, focusing on

  • Maintenance LTS
  • Active LTS
  • Current

Contributing to this project

Please read ourcontribution 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.

About

🚀 The successor to oauthjs/oauth2-server. 🔒 Complete, compliant, maintained and well tested OAuth2 Server for node.js. Includes native async await and PKCE.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors62


[8]ページ先頭

©2009-2025 Movatter.jp