Posted On 17.12.2025

Centralized OIDC for Wiki.js using Keycloak

0 comments
confdroid.com >> blog >> Centralized OIDC for Wiki.js using Keycloak

Single Sign-On for Wiki.js with Keycloak

Managing multiple credentials across internal tools is tedious. We’ve standardized authentication across our DevOps stack using Keycloak as the central IdP. This post covers how we integrated Wiki.js via OpenID Connect (OIDC).

Step 1: Keycloak client setup

  • Created a confidential OIDC client for Wiki.js
  • Enabled standard flow
  • Configured redirect URI: https://wiki.example.net/auth/oidc/callback
  • Added username, email, and full name mappers

Step 2: Wiki.js configuration

  • Selected Keycloak strategy for OIDC
  • Provided the Keycloak host, realm, client ID, and secret
  • Verified authorization, token, and userinfo endpoints
  • Enabled self-registration for automatic user creation
  • Set default Wiki.js group for new users

Step 3: Testing

  • Logged in with a Keycloak user
  • Confirmed automatic account creation in Wiki.js
  • User assigned to the default group and can read pages
  • Verified TLS termination at HAProxy worked correctly

Conclusion:

With this setup, Wiki.js now shares the same login credentials as other internal tools (Jenkins, Grafana, GitLab), reducing friction and improving security. Self-registration ensures that new users from Keycloak can access Wiki.js immediately, and internal groups control access levels.

If you want a little more technical details, head for my wiki.

Advertisements

Found this post helpful? You can support me:

[![“Buy Me A Coffee”](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/grizzly_coda)

Author Profile

12ww1160DevOps engineer & architect

Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *

19 + 14 =

Related Post

Kubernetes – Argo-CD – Custom Installation

Installing Argo CD the GitOps Way: A More Stable and Maintainable Approach I recently deployed…

Puppet with Foreman – Populating the master with R10k

Populating Your Puppet Master: Modules, Environments, and R10k Made Simple In the last few posts…

ConfDroid Puppet Modules – Puppet

Deep Dive into confdroid_puppet: The Core Module for Your Puppet Setup In this ongoing series…