OHIF + Keycloak + dcm4chee-arc Docker Setup: Blank Screen After Login (OIDC 200 OK)

54 views
Skip to first unread message

Naveen K

unread,
May 16, 2025, 8:11:26 AMMay 16
to dcm4che

Hi everyone,

I’m setting up an OHIF Viewer with dcm4chee-arc and Keycloak for OIDC authentication, all running as Docker containers. After login through Keycloak, I get redirected back to OHIF, but the app just shows a blank screen. The OIDC configuration API returns 200 OK, but nothing loads.

Setup Overview:

  • OHIF: ohif/app:latest (Docker)

  • Keycloak: dcm4che/keycloak:26.0.6 (Docker)

  • dcm4chee-arc: dcm4che/dcm4chee-arc-psql:5.33.1-secure (Docker)

  • Other services: LDAP, MariaDB, PostgreSQL (all Dockerized)

  • Accessing OHIF at: http://localhost:3000

My OHIF Config:

Screenshot 2025-05-16 at 5.40.08 PM.png

Docker Compose (relevant parts):

text
keycloak: image: dcm4che/keycloak:26.0.6 ports: ["8843:8843"] environment: KC_HOSTNAME: https://localhost:8843 arc: image: dcm4che/dcm4chee-arc-psql:5.33.1-secure ports: ["8443:8443"] ohif: image: ohif/app:latest ports: ["3000:80"] volumes: - ./ohif.js:/usr/share/nginx/html/app-config.js:ro

What I observe:

  • Login with Keycloak works, callback hits /callback on OHIF.

  • OIDC config API returns 200 OK.

  • The app is just a blank screen (no error in browser console).

  • No obvious errors in Docker logs

What I’ve checked:

  • Keycloak client ohif-viewer exists, with openid scope.

  • Redirect URI in Keycloak matches http://localhost:3000/callback.

  • Keycloak realm and authority URL match.

  • Tried with both HTTP and HTTPS for OHIF, same result.

Questions:

  1. Has anyone run into this blank screen issue after OIDC login with this stack?

  2. Are there special Keycloak client settings needed (web origins, redirect URIs, etc.)?

  3. Should I be using Docker service names instead of localhost in my configs?

  4. Are there CORS or proxy settings I should check?

  5. Any known issues with this version combination?



David Nguyen

unread,
May 24, 2025, 7:58:16 AMMay 24
to dcm4che
You can F12 and reload about 2-3 times, I had the same problem as you, after resetting 3 times it worked, however the blank screen error was still not fixed
Vào lúc 19:11:26 UTC+7 ngày Thứ Sáu, 16 tháng 5, 2025, Naveen K đã viết:
Reply all
Reply to author
Forward
0 new messages