[BUG] SSO 503 is not handled #1147

Closed
opened 2026-02-05 00:38:16 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @samip5 on GitHub (Jul 24, 2023).

The bug

It seems that if the IdP provider returns something else than 200, it's not handled properly on server nor app.

Results in wierd behavior like:

image
image

The OS that Immich Server is running on

Kubernetes

Version of Immich Server

v1.69.0

Version of Immich Mobile App

v1.69.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not relevant

Your .env content

not relevant

Reproduction steps

1. Setup Immich with password auth disabled
2. See an error if IdP is unreacheable
3. Notice how poorly it handles it in app

Additional information

App doesn't seem to be logging anything in mobile.

Server log snippet:

[Nest] 8  - 07/24/2023, 9:04:38 AM   ERROR [ExceptionsHandler] expected 200 OK, got: 503 Service Unavailable
OPError: expected 200 OK, got: 503 Service Unavailable
    at processResponse (/usr/src/app/node_modules/openid-client/lib/helpers/process_response.js:41:11)
    at Issuer.discover (/usr/src/app/node_modules/openid-client/lib/issuer.js:179:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async AuthService.getOAuthClient (/usr/src/app/dist/domain/auth/auth.service.js:231:24)
    at async AuthService.generateConfig (/usr/src/app/dist/domain/auth/auth.service.js:151:22)
    at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28
    at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17
Originally created by @samip5 on GitHub (Jul 24, 2023). ### The bug It seems that if the IdP provider returns something else than 200, it's not handled properly on server nor app. Results in wierd behavior like: ![image](https://github.com/immich-app/immich/assets/1703002/99b6d74e-2ccf-4df4-92ad-a6fb26c11807) ![image](https://github.com/immich-app/immich/assets/1703002/cc0c234c-fbc6-4059-ad71-f43266d9c11f) ### The OS that Immich Server is running on Kubernetes ### Version of Immich Server v1.69.0 ### Version of Immich Mobile App v1.69.0 ### Platform with the issue - [X] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML not relevant ``` ### Your .env content ```Shell not relevant ``` ### Reproduction steps ```bash 1. Setup Immich with password auth disabled 2. See an error if IdP is unreacheable 3. Notice how poorly it handles it in app ``` ### Additional information App doesn't seem to be logging anything in mobile. Server log snippet: ``` [Nest] 8 - 07/24/2023, 9:04:38 AM ERROR [ExceptionsHandler] expected 200 OK, got: 503 Service Unavailable OPError: expected 200 OK, got: 503 Service Unavailable at processResponse (/usr/src/app/node_modules/openid-client/lib/helpers/process_response.js:41:11) at Issuer.discover (/usr/src/app/node_modules/openid-client/lib/issuer.js:179:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async AuthService.getOAuthClient (/usr/src/app/dist/domain/auth/auth.service.js:231:24) at async AuthService.generateConfig (/usr/src/app/dist/domain/auth/auth.service.js:151:22) at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28 at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17 ```
OVERLORD added the 📱mobile label 2026-02-05 00:38:16 +03:00
Author
Owner

@alextran1502 commented on GitHub (Nov 1, 2023):

Hello is this issue still relevance? if not, can you help me close it?

@alextran1502 commented on GitHub (Nov 1, 2023): Hello is this issue still relevance? if not, can you help me close it?
Author
Owner

@samip5 commented on GitHub (Nov 1, 2023):

I think it should have been handled already.

@samip5 commented on GitHub (Nov 1, 2023): I think it should have been handled already.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1147