Is it possible to redirect unauthenticated users?

With Keycloak working, when accessing the OHIF URI, as an unauthenticated user, it loads the static website but does not load the exam. I would like to know if it is possible to make it so that when accessing the OHIF URL unauthenticated you are redirected to the Keycloak login screen. Is it possible?

I thought this could be a configuration of orthanc-auth-service, but it does not seem to do this even though it is responsible for this. I could be completely wrong here.

Thank you for your time.

Hi @CaioBG

No, I don’t think that is currently possible.

This redirection should be implemented in OHIF in case it receives 401 or 403 from Orthanc DICOMWeb API. I’m not aware of something like this in OHIF but I’m definitely not an OHIF specialist. You should maybe try to ask the question on their community support channel …

Best regards,

Alain.