zmartzone/mod_auth_openidc
FreeOpenID Certified™ OpenID Connect Relying Party implementation for Apache HTTP Server 2.x
About zmartzone/mod_auth_openidc
mod_auth_openidc is an OpenID Certified™ authentication and authorization module for the Apache 2.x HTTP server that implements OpenID Connect 1.x and FAPI 2.x Relying Party functionality. It enables Apache to act as an OpenID Connect Relying Party (RP), relaying end-user authentication to an OpenID Connect Provider (OP) and receiving identity claims. These claims are passed to protected applications via HTTP headers and environment variables, with the REMOTE_USER variable set to the id_token sub claim combined with the OP's Issuer identifier. The module supports custom fine-grained authorization rules based on Apache's Require primitives, clustering via configurable cache backends, and reverse proxy configuration to add OpenID Connect authentication to existing applications without modification. It is available as pre-built binary packages for Debian/Ubuntu and other platforms, with release binaries attached to GitHub Releases.
Key Features
Pros & Cons
- OpenID Certified™, ensuring compliance with OpenID Connect standards
- Supports both OpenID Connect 1.x and the newer FAPI 2.x specifications
- Enables SSO for legacy applications without code changes via reverse proxy mode
- Flexible authorization rules based on arbitrary claims using Apache Require directives
- Multiple cache backends available for session clustering and high availability
- Active open-source project with frequent updates and community support
- Free and open source (Apache 2.0 license)
- Limited to Apache HTTP Server 2.x environments only
- Requires manual configuration of OpenID Connect Provider metadata and endpoints
- No built-in support for multi-tenancy or tenant-specific OIDC configurations
- Documentation is primarily technical and may require familiarity with Apache modules