LuaRocks.org had a security incident in September 2026. Read the incident report.

lua-resty-openidc

A library for NGINX implementing the OpenID Connect Relying Party (RP) and the OAuth 2.0 Resource Server (RS) functionality

$ luarocks install lua-resty-openidc

lua-resty-openidc is a library for NGINX implementing the OpenID Connect Relying Party (RP) and the OAuth 2.0 Resource Server (RS) functionality.

When used as an OpenID Connect Relying Party it authenticates users against an OpenID Connect Provider using OpenID Connect Discovery and the Basic Client Profile (i.e. the Authorization Code flow). When used as an OAuth 2.0 Resource Server it can validate OAuth 2.0 Bearer Access Tokens against an Authorization Server or, in case a JSON Web Token is used for an Access Token, verification can happen against a pre-configured secret/key .

It maintains sessions for authenticated users by leveraging lua-resty-session thus offering a configurable choice between storing the session state in a client-side browser cookie or use in of the server-side storage mechanisms shared-memory|memcache|redis.

It supports server-wide caching of resolved Discovery documents and validated Access Tokens.

It can be used as a reverse proxy terminating OAuth/OpenID Connect in front of an origin server so that the origin server/services can be protected with the relevant standards without implementing those on the server itself.

Versions

1.9.4-13 days ago905 downloads
1.9.3-138 days ago16,327 downloads
1.9.2-153 days ago3,643 downloads
1.9.1-188 days ago8,595 downloads
1.9.0-1154 days ago(revision: 2)39,577 downloads
1.8.0-12 years ago386,472 downloads
1.7.6-33 years ago593,413 downloads
1.7.6-23 years ago(revision: 3)271 downloads
1.7.6-13 years ago(revision: 2)11,773 downloads
1.7.5-14 years ago342,447 downloads
1.7.4-16 years ago535,428 downloads
1.7.3-16 years ago27,595 downloads
1.7.2-17 years ago502,381 downloads
1.7.1-17 years ago21,650 downloads
1.7.0-28 years ago10,214 downloads
1.6.1-18 years ago41,672 downloads
1.6.0-18 years ago279,186 downloads
1.5.4-18 years ago2,179 downloads
1.5.3-18 years ago9,702 downloads
1.5.2-18 years ago1,813 downloads
1.5.1-19 years ago591 downloads
1.5.0-19 years ago208 downloads
1.4.1-19 years ago7,082 downloads
1.4.0-19 years ago15,272 downloads
1.3.2-19 years ago1,968 downloads
1.3.1-19 years ago1,617 downloads
1.3.0-29 years ago1,869 downloads
1.2.3-110 years ago2,916 downloads
1.2.1-110 years ago336 downloads
1.2.0-110 years ago274 downloads

Dependencies

lua >= 5.1
lua-resty-jwt >= 0.4.0

Dependency for

amber-apigw, apip-plugin-oidc, apisix, Apache APISIX, as-kong-oidc, comvita-kong-oidc, fullscript-kong-oidc, kong-enhanced-oidc, kong-o2b-ticketing, kong-oidc, kong-oidc, kong-oidc, kong-oidc, kong-oidc, kong-oidc, kong-oidc, kong-oidc, kong-oidc-adfs, kong-oidc-auth, kong-oidc-by-prashanth, kong-oidc-forward-host, kong-oidc-google-groups, kong-oidc-maryucha, kong-oidc-ng, kong-oidc-plugin, kong-oidc-test, kong-oidc-v2, kong-oidc-v3, kong-oidc-ws-rbac, kong-openid-connect, kong-openid-v3, kong-openidconnect-code-flow-v3, kong-plugin-jwt-blacklist, kong-plugin-jwt-verifier, kong-plugin-oauth2-audience, kong-plugins-openidc, lua-resty-keycloak, lzq-kong-oidc, magic-apigw, nx-kong-oidc

Labels

Manifests