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:

Author Profile

12ww1160DevOps engineer & architect

Advertisements

Leave a Reply

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

four × 3 =

Related Post

Postgresql | Tablespaces on multiple file systems

Postgresql (PG) is a quite powerful open source database systems and widely used as DB…

How We Integrated Jenkins with Keycloak

Intro Managing Jenkins users can get messy, especially with multiple teams. By integrating Jenkins with…

Kubernetes Quickie: Extract the Ca-Bundle

Today I came across a new little problem: Configuring a MutatingWebhookConfiguration for Nginx ingress controller.…
Social Media Auto Publish Powered By : XYZScripts.com