Repository navigation
OIDC backchannel logout from mobile app #32438
MicDG
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
The bug
Environment
Behavior
Browser logout ends the Authentik session with the provider's invalidation flow configured appropriately. Logging back in asks for credentials again.
In the iOS app, logout ends the Immich session, but the next OAuth login signs in automatically using the existing Authentik session.
Evidence
During iOS logout, Caddy logs show a request to Authentik's OIDC discovery endpoint (shown in the attached logs) but no request to:
/application/o/immich/end-session/
The mobile AuthService.logout() implementation calls the logout API and clears local data, but does not appear to follow the returned OIDC logout URL:
https://github.com/immich-app/immich/blob/v3.3.1/mobile/lib/services/auth.service.dart#L84
Is provider logout intentionally unsupported on mobile?
Could mobile logout optionally end the identity-provider session?
The OS that Immich Server is running on
Debian GNU/Linux 13.7 (trixie)
Version of Immich Server
v3.3.1
Version of Immich Mobile App
v3.3.1
Platform with the issue
Device make and model
Apple iPhone 11
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
{"level":"info","ts":1791976215.647492,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"(redacted)","remote_port":"(redacted)","client_ip":"(redacted)","proto":"HTTP/1.1","method":"GET","host":"auth.example.com","uri":"/application/o/immich/.well-known/openid-configuration","headers":{"Accept":["application/json"],"User-Agent":["openid-client/v6.8.8"],"Accept-Language":["*"],"Sec-Fetch-Mode":["cors"],"Accept-Encoding":["br, gzip, deflate"],"Connection":["keep-alive"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"http/1.1","server_name":"auth.example.com","ech":false}},"bytes_read":0,"user_id":"","duration":0.179540213,"size":2227,"status":200,"resp_headers":{"Vary":["Accept-Language, Cookie"],"Content-Type":["application/json"],"X-Frame-Options":["DENY"],"X-Content-Type-Options":["nosniff"],"Date":["Wed, 14 Oct 2026 11:10:14 GMT"],"Via":["1.1 Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"Server":["uvicorn"],"Referrer-Policy":["same-origin"],"Content-Language":["en"],"X-Powered-By":["authentik"],"Content-Length":["2227"],"X-Authentik-Id":["(redacted)"]}}Additional information
No response
All reactions