Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 637 Bytes

File metadata and controls

23 lines (18 loc) · 637 Bytes

pam-keycloak

PAM module for authenticating against Keycloak

Installation

  1. Install libpam-python
  2. Fetch source
  3. Create virtualenv
  4. Install requirements
  5. Add to pam.d

Keycloak configuration

Create new OpenID Connect client. Add client ID and secret to config file.

With OTP enabled

First need new authentication flow to allow OTP to be bypassed Clone the direct flow grant as 'direct flow no OTP' and disable OTP

Secondly create new client of type OpenID Connect with access type confidential In authentication flow overrides, set direct grant flow to the new direct grant flow created earlier

Test

use pamtester