BookStack: OIDC with Zitadel SaaS stops working after some time (signature could not be validated using the provided keys)
Describe the Bug
When Zitadel SaaS is used for authentication with OIDC in Bookstack, it will stop working after some time, at the latest after 24 hours, and the following error message is shown: ID token validation failed with error: Token signature could not be validated using the provided keys.
Workaround: Deleting the bookstack docker container and recreating it fixes the error for some hours.
Steps to Reproduce
- set up OIDC with Zitadel SaaS as described in #4682 by @megastary
- test successful sign in with SSO
- wait 24 hours
- retry sign in with SSO
- see error:
ID token validation failed with error: Token signature could not be validated using the provided keys
Expected Behaviour
When set up correctly, authentication with OIDC in bookstack works also after 24 hours.
Screenshots or Additional Context
Browser Details
Brave (1.66.118 Chromium: 125.0.6422.147 (Official Build) (64-bit)) on Windows 11 Version 23H2 (Build 22631.3593)
Exact BookStack Version
v24.05.1
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 17 (6 by maintainers)
+1 for this issue also with self-hosted Zitadel
@ssddanbrown
Ours is running on a Debian 12 VM, hosted on an XCP-ng pool, using Docker compose and behind a Caddy reverse proxy also running in a container on a shared Docker network.
Docker versions
Bookstack
Container info
Docker Compose
.env
Custom theme function
As described in this issue #4682 we added the following file to our bookstack containers volume to
Replace multiple aud values with single azp valueto cater for Zitadel’s returned array.Caddy (Reverse Proxy)
Caddyfile
Docker Compose