🐛 Bug Report: Logout Redirect Fails with 403 Error (You don't have permission to perform this action) #233

Closed
opened 2025-10-07 00:06:46 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @guptayash on GitHub.

Reproduction steps

I have integrated pocket id instance with immich following the steps here.

Steps to reproduce -

  1. Create a non-admin user in pocket id.
  2. Log in to Immich using Pocket ID and the non-admin user.
  3. Click Logout.
  4. Observe: Immich revokes its internal token correctly, but the redirect to /api/oidc/end-session fails.

Expected behavior

After logout, the user should be redirected without hitting a permission error.

The OIDC end-session route should allow valid users (even non-admin) to complete logout gracefully.

Actual Behavior

Throws error 403 with error message
{"error":"You don't have permission to perform this action"}

Version and Environment

v0.51.0
Hosted on docker

Log Output

[GIN] 2025/05/03 - 18:06:49 | 403 | 3.312964ms | 192.168.0.5 | GET "/api/oidc/end-session"
Error #01: You don't have permission to perform this action

Originally created by @guptayash on GitHub. ### Reproduction steps I have integrated pocket id instance with immich following the steps [here](https://pocket-id.org/docs/client-examples/immich). Steps to reproduce - 1. Create a non-admin user in pocket id. 2. Log in to Immich using Pocket ID and the non-admin user. 3. Click Logout. 4. Observe: Immich revokes its internal token correctly, but the redirect to `/api/oidc/end-session` fails. ### Expected behavior After logout, the user should be redirected without hitting a permission error. The OIDC end-session route should allow valid users (even non-admin) to complete logout gracefully. ### Actual Behavior Throws error 403 with error message {"error":"You don't have permission to perform this action"} ### Version and Environment v0.51.0 Hosted on docker ### Log Output [GIN] 2025/05/03 - 18:06:49 | 403 | 3.312964ms | 192.168.0.5 | GET "/api/oidc/end-session" Error #01: You don't have permission to perform this action
OVERLORD added the bug label 2025-10-07 00:06:46 +03:00
Author
Owner

@stonith404 commented on GitHub:

Thanks for reporting this. This should be fixed in v0.51.1.

@stonith404 commented on GitHub: Thanks for reporting this. This should be fixed in `v0.51.1`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#233