[Bug]: Logout is a no-op when OIDC_DISABLE_LOCAL_LOGIN=true — no RP-initiated logout
Before reporting
- [x] I am running the latest version of DVinyl.
- [x] I searched the existing issues and did not find a duplicate.
What happened?
Auth: OIDC (authentik), OIDC_DISABLE_LOCAL_LOGIN=true
Clicking logout returns you to a logged-in session immediately. The app-side cookie is cleared, but the IdP session is never ended, so the auto-redirect introduced for #92 silently re-authenticates before the user sees anything.
Steps to reproduce
- Configure OIDC and set OIDC_DISABLE_LOCAL_LOGIN=true
- Log in via the provider
- Click logout
Expected behavior
Expected: logged out, and either a login screen or the provider's login prompt. Actual: back in the app, same account, no prompt.
DVinyl version
3.1.4
How are you running DVinyl?
Docker (pre-built image)
Affected media type or plugin
No response
Browser and device
Chrome on Desktop
Logs or screenshots
I only have 1 user so the REDACTED field has the same value for all the logs bellow
26.08.2026 18:29:16 [dvinyl_app] [BOOT] Server started on port 3099 (BASE_URL="/", env=development)
26.08.2026 18:30:01 [dvinyl_app] [AUTH] Logout: REDACTED
26.08.2026 18:30:03 [dvinyl_app] [AUTH] Logout
26.08.2026 18:30:04 [dvinyl_app] [AUTH] Session issued for REDACTED (192.168.30.113)
26.08.2026 18:30:07 [dvinyl_app] [AUTH] Logout: REDACTED
26.08.2026 18:30:08 [dvinyl_app] [AUTH] Session issued for REDACTED (192.168.30.113)
26.08.2026 18:30:27 [dvinyl_app] [AUTH] Session issued for REDACTED (192.168.30.113)
26.08.2026 18:33:41 [dvinyl_app] [AUTH] Session issued for REDACTED (192.168.30.113)
26.08.2026 18:33:45 [dvinyl_app] [AUTH] Logout: REDACTED
26.08.2026 18:33:45 [dvinyl_app] [AUTH] Session issued for REDACTED (192.168.30.113)
❗ This only happens when
OIDC_DISABLE_LOCAL_LOGIN=true
I guess instead of the automatic redirect to the provider I would expect to see the login screen with just the configured OIDC button
| Before | After |
|---|---|
I don't think any app developed for self hosting would actually implement the session end specs so when you logout it's probably enough to clear the local cookies and redirect to the stripped down login screen (clicking the button would authenticate you immediately if the OIDC session is not expired) 🤷🏻♂️
Hello! Thanks for the report! I'll try to fix this asap
Hi! I just released version 3.1.5, which fixes the loop :D
A sign-out now lands on the login page and says so, so that redirect doesn't fire, and the server-side session is destroyed as well as the JWT cookie (it only carries the in-flight OIDC handshake today, but leaving it standing was the kind of thing that quietly becomes a hole).
One honest caveat, since your title asks for it specifically: this is not RP-initiated logout. Your session at the provider is untouched, so clicking sign-in again will still get you back in without a prompt. You're out of DVinyl, not out of authentik. Ending the IdP session properly means sending an end_session_endpoint request with an id_token hint, and that's a separate piece of work. Tell me if you want it and I'll open an issue for it, or feel free to reopen this one :D
@Kyonew thank you 🙇🏻
Your session at the provider is untouched, so clicking sign-in again will still get you back in without a prompt. You're out of DVinyl, not out of authentik.
Yep, this is perfect 👍🏻