Chapter 5. Configuring the mod_auth_openidc Apache HTTPD Module
Configure the mod_auth_openidc Apache module with Red Hat build of Keycloak.
Red Hat build of Keycloak does not provide any official support to mod_auth_openidc. The instructions below are best-effort and may not be up-to-date. We recommend that you stick to official mod_auth_openidc documentation for more details.
The mod_auth_openidc is an Apache HTTP plugin for OpenID Connect. If your language/environment supports using Apache HTTPD as a proxy, then you can use mod_auth_openidc to secure your web application with OpenID Connect. Configuration of this module is beyond the scope of this document. Please see the mod_auth_openidc GitHub repo for more details on configuration.
To configure mod_auth_openidc you’ll need
- The client_id.
- The client_secret.
- The redirect_uri to your application.
- The Red Hat build of Keycloak openid-configuration url
- mod_auth_openidc specific Apache HTTPD module config.
An example configuration would look like the following.
Further information on how to configure mod_auth_openidc can be found on the mod_auth_openidc project page.