BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.43k stars 1.94k forks source link

Bookstack Keyckloak integration problem #5286

Closed umlumpa closed 2 weeks ago

umlumpa commented 4 weeks ago

Attempted Debugging

Searched GitHub Issues

Describe the Scenario

Colleagues, good afternoon! I want to integrate Bookstack with Keycloak. I have a problem: the Keycloak login page opens, I authorize, but for some reason, it does not redirect me back to Bookstack. Here are my configurations:

OIDC_CLIENT_ID: bookstack.example.com
OIDC_CLIENT_SECRET: secret_from_keycloak
OIDC_DISPLAY_NAME_CLAIMS: email
OIDC_DUMP_USER_DETAILS: 'true'
OIDC_GROUPS_CLAIM: resource_access.bookstack.roles
OIDC_ID_TOKEN_PRE_VALIDATE: 'false'
OIDC_ISSUER: https://auth.example.com/auth/realms/Example
OIDC_ISSUER_DISCOVER: 'true'
OIDC_NAME: Login with Keycloak
OIDC_REMOVE_FROM_GROUPS: 'true'
OIDC_USER_TO_GROUPS: 'true'
AUTH_AUTO_INITIATE: 'false'
AUTH_METHOD: oidc
APP_URL: https://bookstack.example.com

Screenshot 2024-10-24 at 14 46 49

after login it returns like this

Screenshot 2024-10-24 at 14 49 30

Exact BookStack Version

latest

Log Content

there no logs

Hosting Environment

In docker solidnerd/bookstack

ssddanbrown commented 4 weeks ago

Hi @umlumpa,

You have OIDC_DUMP_USER_DETAILS: 'true' set currently. This stops the login process and dumps users details on attempted login. Remove that option (or set it to false) and you should get past that debug view.

ssddanbrown commented 2 weeks ago

Since there's been no further follow up I'll go ahead and close this off.