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.

Found this post helpful? You can support me:

Author Profile

12ww1160DevOps engineer & architect

Leave a Reply

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

11 − three =

Related Post

How to add an existing Paypal button to WordPress

So you run a Wordpress website and want to add a simple button for donations…

Kubernetes – What’s all the fuzz about it?

So I have been in the IT business for more than 20 years and seen…

How to share fuse file systems with NFS

As part of my mini-blog about migrating to Kubernetes I am currently setting up an…
Social Media Auto Publish Powered By : XYZScripts.com