0

Can Google Cloud Storage (GCS) be directly accessed using OAuth 2.0 Client Credentials flow (client ID + client secret) for file uploads?

Can Google Cloud Storage (GCS) be directly accessed using OAuth 2.0 Client Credentials flow (client ID + client secret) for file uploads?

I’ve encountered a limitation where GCS seems to require Service Account authentication to generate access tokens for uploading files, but I want to confirm whether OAuth 2.0 Client Credentials flow can be used, possibly with additional configurations. Any insights or best practices would be appreciated!

Using Postman got below error. "error": {

"code": 401,

"message": "Anonymous caller does not have storage.objects.create access to the Google Cloud Storage object. Permission

'storage.objects.create' denied on resource (or it may not exist).",

"errors": [

{

"message": "Anonymous caller does not have storage.objects.create access to the Google Cloud Storage object. Permission

'storage.objects.create' denied on resource (or it may not exist).",

"domain": "global",

"reason": "required",

"locationType": "header",

"location": "Authorization"

}

]

}

}

I Google and found few articles saying Google does not support auth2.0 with client id & client secret to upload file we need to use service account (which gives json & use jwt to allow access) But I want to upload file using aith2.0 with grant type client credentials. I want to integrate with this with app to upload files and app only support aith2.0 with grant type ( client credentials & password credentials) Just testing with postman but seems Google has some limitations.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.