Awesome OpenID Connect
OpenID Connect is an authentication protocol and identity layer on top of OAuth 2.0 used in many SSO and adopted in many social logins (Apple, Facebook, Google, etc). Basically, it allows a user to authenticate to a service using an existing account from an OpenID Connect Provider (OP), sharing some identity information after the user consent, and get an access token to access resources on a Relying Party (RP) application.
Find this curated list of providers, services, libraries, and resources to adopt it and know more about existing and draft specs.
Contents
OpenID Providers (OP)
OpenID Connect Providers as SaaS and Open Source solutions.
Relying Parties (RP) Libraries
Relying Parties (RP) Libraries for implementing OpenID Connect on a client application.
C
-
liboauth2
- Generic library to build C-based OpenID Connect Provider and Relying Party.
-
mod_auth_openidc
- OpenID Connect Relying Party certified implementation for Apache Server 2.x.
-
ngx_oauth2_module
- OpenID Connect Relying Party certified implementation for Nginx.
C#
Dart
-
openid_client
- OpenID Connect Relying Party client library for Dart in Flutter, Web and Command Line.
Erlang
-
oidcc
- Certified OpenID Connect Relying Party client library for Erlang and Elixir with FAPI support.
Golang
-
coreos/go-oidc
- Go OpenID Connect client developed by CoreOS.
-
golang.org/x/oauth2 - Official Golang client implementation for OAuth 2.0 spec with OpenID Connect support.
-
zitadel/oidc
- OpenID Connect client and server library certified by the OpenID Foundation.
Java
-
com.google.oauth-client/google-oauth-client
- OAuth Relying Party Java library written by Google for OAuth 2.0 with Android support.
-
com.nimbusds/oauth2-oidc-sdk - Java SDK developed by connect2id with OpenID Connect, FAPI, Federation and eKYC / Identity Assurance extensions.
-
pac4j
- Framework-agnostic Java security engine with OpenID Federation support and adapters for Spring, Jakarta EE, Play, Vert.x and other web frameworks.
-
Spring Security - Java framework for securing Spring-based applications with OpenID Connect and OAuth 2.0 support.
JavaScript
-
openid-client
- OpenID Certified™ Relying Party (OpenID Connect/OAuth 2.0 Client) implementation for Node.js.
-
oauth4webapi
- OAuth 2/OpenID Connect library for JavaScript Runtimes.
-
oidc-client-ts
- TypeScript OpenID Client and OAuth 2.0 client for browser-based applications.
Libraries layer focused on specific framework integration
-
Better Auth
- TypeScript Framework agnostic authentication library for SPAs and server-side applications.
-
nuxt-auth for Nuxt 2
- Zero-boilerplate authentication support for Nuxt.js 2.
-
nuxt-auth for Nuxt3
- Nuxt 3 user authentication and sessions library. nuxt-auth wraps NextAuth.js.
-
angular-auth-oidc-client
- Angular certified library with OAuth 2.0 and OpenID Connect flows, and Angular schematics.
-
angular-oauth2-oidc
- Library which bring support for OAuth 2.0 and OpenID Connect (OIDC) in Angular.
OCaml
-
ocaml-oidc
- Certified OpenID Connect Relying Party implementation in OCaml.
PHP
Python
-
Authlib
- Python library in building OAuth and OpenID Connect servers and clients.
-
mozilla-django-oidc
- A Django OpenID Connect relying party library maintained by Mozilla.
Ruby
Rust
-
openidconnect
- OpenID Connect Relying party (RP) library for Rust.
Relying Parties (RP) Software Plugins
-
MiniOrange OAuth SSO - Wordpress OAuth and OpenID Connect plugin developed and actively maintained by MiniOrange.
-
oauth2-proxy
- Reverse proxy adding OpenID Connect and OAuth 2.0 based authentication in front of any application.
-
lua-resty-openidc
- OpenID Connect Relying Party and OAuth 2.0 client Lua library for NGINX/OpenResty.
-
Kong OpenID Connect - OpenID Connect Relying Party plugin for the Kong API Gateway.
-
Apache APISIX openid-connect - OpenID Connect Relying Party plugin for the Apache APISIX API Gateway.
-
traefikoidc
- OpenID Connect Relying Party middleware plugin for Traefik.
-
caddy-security
- OpenID Connect Relying Party authentication plugin for the Caddy web server.
-
Vouch Proxy
- SSO solution using OpenID Connect for Nginx and Traefik reverse proxies.
Resources
Where to discover learning resources about OpenID Connect.
Flows / Grant Types Specifications
-
authorization_code - OAuth 2.0 Authorization Code Grant Type which fit well public client authorization like web apps.
-
refresh_token - OAuth 2.0 Refresh Token Grant Type used to exchange a refresh token against a short life access token and sometime a new refresh token as well.
-
client_credentials - OAuth 2.0 Client Credentials Grant providing a way to get token without user interaction which fit well machine to machine communications.
-
implicit - OAuth 2.0 Implicit Grant Type which is deprecated and should not be used anymore.
-
password - OAuth 2.0 Resource Owner Password Credentials Grant Type which is not recommended to use anymore.
-
urn:ietf:params:oauth:grant-type:device_code - OAuth 2.0 Device Authorization Grant focused on interaction with user outside of a browser context like smart TVs.
-
urn:ietf:params:oauth:grant-type:jwt-bearer - JSON Web Token (JWT) Profile for OAuth 2.0 used to authorize a client to get an access token with another JWT issued by a trusted provider.
-
urn:ietf:params:oauth:grant-type:saml2-bearer - Security Assertion Markup Language (SAML) 2.0 Profile for OAuth 2.0 used to authorize a client to get an access token with a SAML assertion issued by a trusted provider.
-
urn:ietf:params:oauth:grant-type:token-exchange - OAuth 2.0 Token Exchange is a Grant Type which provides a way to get tokens from another token and give the ability to add an actor claim.
-
Proof Key for Code Exchange (PKCE) Extension - Extension of the Authorization Code flow adding security layer against code interception attack.
Specifications
Published
Draft
Websites
-
OpenID - The OpenID Connect official website.
-
OAuth - The OAuth website maintained by Aaron Parecki which list different resources about the protocol.
-
ByteByteGo - Oauth 2.0 explains using visual and simple terms.
-
Aaron Parecki - OAuth WG Member blog posts about OAuth 2.0.
-
CerberAuth - A blog talking about OpenID Connect and OAuth 2.0.
-
Nacho - An OAuth 2.0 client creation helper helping to choose the right grant type depending on the application.
-
Curity Resources - Curity solution resources articles about OpenID Connect.
-
Okta Blog - Okta vendor blog posts about OAuth 2.0 and OpenID Connect.
-
Medium OAuth 2.0 - Medium blog with learnings, patterns and ideas around use of OAuth 2.0.
-
Mike Jones: Self-Issued - Mike Jones blog posts about OAuth 2.0 and OpenID Connect.
-
IAMDevBox - Developer blog covering OAuth 2.0/2.1, OIDC, SAML, Keycloak, ForgeRock, and PingIdentity with hands-on tutorials and troubleshooting guides.
Thematic Articles
Playgrounds
-
OAuth.com Playground - OAuth 2.0 / OpenID Connect Playground with authorization flows and step by step of the process of obtaining an access token.
-
SecureAuthCorp/oauth2c
- OAuth 2.0 and OpenID Connect command line client for testing and exploring different flows.
-
Curity Playground - Tools for exploring and testing OAuth and OpenID Connect flows.
-
MojoAuth: Passkey Playground - Build and visualize OpenID Connect requests with this interactive tool. Configure parameters, generate request URLs, and decode JWT tokens.
Testing Utilities
-
OAuth Mock Server - A free and open-source OAuth mock server that simulates the biggest providers just by replacing the URL. Useful for E2E testing.
Books
Contributing
Your contributions are always welcome! Please take a look at the contribution guidelines
first.