Issue with User Account Authentication for Google Cloud Storage Plugin in Orthanc

Hi,

I’m trying to configure the Google Cloud Storage plugin in Orthanc using a user account (OAuth 2.0 credentials) instead of a service account. However, the plugin fails to validate credentials and crashes Orthanc.

Setup:

  • Orthanc Image: orthancteam/orthanc:25.2.0-full
  • Authentication method: User Account with Client ID, Client Secret, and Refresh Token
  • Environment variables used in docker-compose.yaml:
ORTHANC__GOOGLE_CLOUD_STORAGE__ENABLE: "true"
ORTHANC__GOOGLE_CLOUD_STORAGE__BUCKET_NAME: "xxxx-bucket-xxxx"
ORTHANC__GOOGLE_CLOUD_STORAGE__ROOTPATH: "dcm-hot-storage"
ORTHANC__GOOGLE_CLOUD_STORAGE__AUTHORIZED_USER_CLIENT_ID: "7xxxx05xxx0-6xxxxxxx8exxxxx1hur.apps.googleusercontent.com"
ORTHANC__GOOGLE_CLOUD_STORAGE__AUTHORIZED_USER_CLIENT_SECRET: "d-xxxxxxxxxx"
ORTHANC__GOOGLE_CLOUD_STORAGE__AUTHORIZED_USER_REFRESH_TOKEN: "1//xxxxxx-xxxxxxxx-xxxxxx"

Command used to bring up service: sudo docker compose up -d

Error Logs: refer screenshot

Looks like it is still trying to look for service account file and not cosuming authorized user details from docker-compose.yaml

Using params from here and converted for docker-compose using these rules.

Kindly help where I am going wrong

Hello,

As far as I’m concerned, I want to clarify that I will not be providing support for the Google Cloud Platform plugin for Orthanc. Since the first release of this plugin in 2019, we have not received any financial, technical, scientific, or promotional assistance from Google, and as we do not use Google Cloud services ourselves, we lack the necessary incentive to maintain it. If you are using and paying for Google Cloud services, you may consider hiring a consultant (e.g., Orthanc Team) for any necessary support.

Best Regards,
Sébastien-

1 Like