Authentication with Cloudflare tunnels

Hello Community,

I am currently trying to secure my DICOM/PACS server with Cloudflare Access. I have installed the Cloudflare tunnel agent on my server and have a subdomain pointing to OHIF. Access is controlled via Cloudflare Access.

However, I have not yet found a way to store the HTTP Basic Auth access data of OHIF / ORTHANC at Cloudflare. Does anyone know how I can do this? How can I define user groups (*@domain-abc.tld + *@domain-xyz.tld) with different rights (Lua script)?

I would be very grateful for your experience and step-by-step instructions!

Best regards