Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using non-anonymous client #1334

Open
jkarolczak opened this issue Sep 20, 2023 · 1 comment
Open

Using non-anonymous client #1334

jkarolczak opened this issue Sep 20, 2023 · 1 comment

Comments

@jkarolczak
Copy link

I wonder if I can use face-gcs-server when I'm forced to use a non-anonymous client. I use an external package (mlflow) that forces calling .refresh() which raises an exception when called on an anonymous credentials object (google docs). I have no idea what to put to the credentials file to point the fake-gcs-storage by the google-cloud-storage client.

My use case is strictly limited to Python, but I think it's a general issue, not related to any specific language.

@fsouza
Copy link
Owner

fsouza commented Sep 22, 2023

Hmm that would be up to the client. I'm pretty sure that when credentials are specified, the SDKs communicate with the Google API to validate it. fake-gcs-server only simulates the GCS API, it doesn't support validating credentials.

I haven't looked too deep into this though, so I could be wrong. Do you know what API gets called when you call .refresh() in the Python SDK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants