OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.37k stars 3.39k forks source link

[Bug] Redirecting to microsoft login #4525

Open Neena-Mohan opened 6 days ago

Neena-Mohan commented 6 days ago

Describe the Bug

We're using Azure dicom service for OHIF Viewer. In that, we gave azure login(authority) in config file for authentication. When loading the ohif viewer, it redirecting to microsoft login at first. For client, It should not redirect to there at first time. So please provide a solution for this.

oidc: [ { authority: "https://login.microsoftonline.com/****/v2.0/", client_id: "CLIENT_ID", redirect_uri: "/callback", response_type: "token", scope: "openid ****", post_logout_redirect_uri: "/logout-redirect.html", automaticSilentRenew: false, revokeAccessTokenOnSignout: true,
}, ],

Steps to Reproduce

Loading the url in browser Sample URL : https://domainname.z13.web.core.windows.net/viewer?StudyInstanceUIDs=***&token=***

At first, if the user microsoft account is not logged-in then it redirect to microsoft login.

The current behavior

Redirecting to microsoft login when loading the url at first time. If my microsoft account is already logged then its not going login page.

The expected behavior

It should not redirect to login page

OS

Windows 10

Node version

Using bundle files

Browser

Chrome 130.0.6723.117

sedghi commented 6 days ago

We plan to add some doc for Azure auth soon

Neena-Mohan commented 6 days ago

@sedghi @IbrahimCSAE Could you help me with this? Is there anything we need to adjust in the configuration to resolve this issue? This is urgent, as we've halted production due to it.

sedghi commented 6 days ago

https://github.com/OHIF/Viewers/issues/4525#issuecomment-2483316054