Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.47 KB

File metadata and controls

56 lines (37 loc) · 1.47 KB

mod_auth_openidc

Apache 2.4 module implementing OpenID Connect Relying Party and OAuth 2.0 Resource Server functionalities.

Installation

  1. Download the latest release

  2. Install the package for your OS:

    # Debian/Ubuntu
    sudo apt install ./libapache2-mod-auth-openidc*.deb
    
    # RHEL/CentOS
    sudo yum install mod_auth_openidc*.rpm

Configuration

Example: see example configuration file.

Enable debugging:

LogLevel debug auth_openidc:trace8

Authentication Info Endpoints

The module exposes authentication information through these endpoints:

  • /redirect_uri?info=json - Authentication data in JSON format
  • /redirect_uri?info=html - Authentication data in HTML format
  • /redirect_uri?logout=logout_uri - Logout endpoint

Available Info Fields

Configure which fields to expose using OIDCInfoHook:

OIDCInfoHook iat access_token id_token userinfo session

Fields:

  • iat - Token issue timestamp
  • access_token - Opaque access token
  • id_token - ID token claims
  • userinfo - UserInfo endpoint claims
  • session - Session metadata

Documentation