Retour au classement

panva/node-oidc-provider

JavaScript

OpenID Certified™ OAuth 2.0 Authorization Server implementation for Node.js

openidoidcopenid-provideropenid-connectconnectserverprovideroauth2authorizationauthorization-server
Croissance des étoiles
Étoiles
3.8k
Forks
790
Croissance hebdomadaire
Issues
0
1k2k3k
avr. 2016sept. 2019févr. 2023juil. 2026
Artefactsnpmnpm install node-oidc-provider
README

oidc-provider

This module provides an OAuth 2.0 (RFC 6749) Authorization Server with support for OpenID Connect (OIDC) and many other additional features and standards.

Table of Contents

Implemented specs & features

The following specifications are implemented by oidc-provider (not exhaustive):

Note that not all features are enabled by default, check the configuration section on how to enable them.

Supported Access Token formats:

The following specifications and drafts are implemented as experimental features:

Updates to experimental feature specification versions are released as MINOR library versions, if you utilize these features consider using the tilde ~ operator in your package.json since breaking changes may be introduced as part of these version updates. Alternatively acknowledge the version and be notified of breaking changes as part of your CI.

Certification

OpenID Certification
Filip Skokan has certified that oidc-provider conforms to the following profiles of the OpenID Connect™ protocol.

  • Basic, Implicit, Hybrid, Config, Form Post, and 3rd Party-Init
  • Back-Channel Logout and RP-Initiated Logout
  • FAPI 1.0
  • FAPI CIBA
  • FAPI 2.0
Auth0 by Okta

If you want to quickly add OpenID Connect authentication to Node.js apps, feel free to check out Auth0's Node.js SDK and free plan. Create an Auth0 account; it's free!

Support

If you or your company use this module, or you need help using/upgrading the module, please consider becoming a sponsor so I can continue maintaining it and adding new features carefree. The only way to guarantee you get feedback from the author & sole maintainer of this module is to support the package through GitHub Sponsors.

Documentation & Configuration

oidc-provider can be mounted to existing connect, express, fastify, hapi, or koa applications, see how. The authorization server allows to be extended and configured in various ways to fit a variety of uses. See the documentation and example folder.

import * as oidc from "oidc-provider";

const provider = new oidc.Provider("http://localhost:3000", {
  // refer to the documentation for other available configuration
  clients: [
    {
      client_id: "foo",
      client_secret: "bar",
      redirect_uris: ["http://localhost:8080/cb"],
      // ... other client properties
    },
  ],
});

const server = provider.listen(3000, () => {
  console.log(
    "oidc-provider listening on port 3000, check http://localhost:3000/.well-known/openid-configuration",
  );
});

External type definitions are available via DefinitelyTyped.

Community Guides

Collection of Community-maintained configuration use cases are in the Community Guides Discussions section

Events

oidc-provider instances are event emitters, using event handlers you can hook into the various actions and i.e. emit metrics that react to specific triggers. See the list of available emitted event names and their description.

Supported Versions

Version Security Fixes 🔑 Other Bug Fixes 🐞 New Features ⭐
v9.x Security Policy
v8.x Security Policy
Dépôts similaires
jaredhanson/passport

Simple, unobtrusive authentication for Node.js.

JavaScriptnpmMIT Licensenodejsexpress
passportjs.org
23.5k1.3k
ory/hydra

Internet-scale OpenID Certified™ OpenID Connect and OAuth2.1 provider that integrates with your user management through headless APIs. Solve OIDC/OAuth2 user cases over night. Consume as a service on Ory Network or self-host. Trusted by OpenAI and many others for scale and security. Written in Go.

GoGo ModulesApache License 2.0hydraoauth2
ory.com
17.4k1.6k
DefGuard/defguard

Zero-Trust access management with true WireGuard® 2FA/MFA

Rustcrates.ioOthermultifactor-authenticationopenid
defguard.net
2.8k107
panva/openid-client

OAuth 2 / OpenID Connect Client API for JavaScript Runtimes

TypeScriptnpmMIT Licenseoidcopenid
2.4k409
ory/polis

Streamline your web application's authentication with Polis, an SSO service supporting SAML and OpenID Connect protocols. Beyond enterprise-grade Single Sign-On, it also supports Directory Sync via the SCIM 2.0 protocol for automatic user and group provisioning/de-provisioning.

TypeScriptnpmApache License 2.0enterprise-softwaresaml
ory.com
2.3k223
kdeldycke/awesome-iam

👤 Identity and Access Management knowledge for cloud platforms

Creative Commons Zero v1.0 Universaliamsecret-management
2.2k185
greenpau/caddy-security

🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA/2FA with App Authenticators and Yubico. 💎 Authorization with JWT/PASETO tokens. 🔐

GoGo ModulesApache License 2.0caddy-plugincaddy2
authcrunch.com
2.2k101
boxyhq/jackson

🔥 Streamline your web application's authentication with Jackson, an SSO service supporting SAML and OpenID Connect protocols. Beyond enterprise-grade Single Sign-On, it also supports Directory Sync via the SCIM 2.0 protocol for automatic user and group provisioning/de-provisioning. 🤩

TypeScriptnpmApache License 2.0enterprise-softwaresaml
boxyhq.com/docs/jackson/overview
2k169
longguikeji/arkid

一账通是一款开源的统一身份认证授权管理解决方案,支持多种标准协议(LDAP, OAuth2, SAML, OpenID),细粒度权限控制,完整的WEB管理功能,钉钉、企业微信集成等,QQ group: 167885406

PythonPyPIGNU Affero General Public License v3.0openidsaml
longguikeji.github.io/arkid/
1.3k251
damienbod/angular-auth-oidc-client

npm package for OpenID Connect, OAuth Code Flow with PKCE, Refresh tokens, Implicit Flow

TypeScriptnpmMIT Licenseopenidangular
npmjs.com/package/angular-auth-oidc-client
1.2k450
dvsekhvalnov/jose-jwt

Ultimate Javascript Object Signing and Encryption (JOSE), JSON Web Token (JWT) and Json Web Keys (JWK) Implementation for .NET and .NET Core

C#MIT Licensejosejwt
1k192
TerribleDev/OwinOAuthProviders

OAuth providers for Owin

C#oauth-providerc-sharp
504235