-
-
Notifications
You must be signed in to change notification settings - Fork 492
Open
Labels
Description
Module
auth_oidc
Describe the bug
After logging in through Keycloak, the user is redirected back to Odoo successfully.
However, after ≈ 10–20 minutes of inactivity, the next request returns: Session expired
To Reproduce
Steps:
- Configure a Keycloak client for Odoo with “Standard Flow” and “Refresh Tokens”.
- In Odoo, install
auth_oidcand create an Identity Provider with the client ID/secret, discovery URL, and “Auto create users” enabled. - Log in as a normal user via Keycloak – authentication succeeds.
- Wait 10‑20 minutes without interacting.
Expected behavior
The refresh token should be exchanged automatically and the Odoo session should remain valid until either:
- Keycloak Access‑Token lifespan is reached and a refresh fails, or
- Odoo’s own session timeout value (default 1 day) expires.
Odoo config (snippet)
[auth_oidc]
client_id =
client_secret =
scopes = openid,profile,email,offline_access