You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Hello I am facing an issue where some of my requests are passing the client auth and some not.
I am using credentials auth. Init client example bellow (behaviour is the same if I pass the projectId too):
Example that does NOT work is client.createVehicle(...) it returns Error: 7 PERMISSION_DENIED: JWT does not contain any scopes.
This is fully strange for me because I used client.auth.getAccessToken() to get the token and then decoded it on https://oauth2.googleapis.com/tokeninfo?access_token=, and got this bellow which seems fine: { "azp": "107260674233372867632", "aud": "107260674233372867632", "scope": "https://www.googleapis.com/auth/cloud-platform", "exp": "1735572110", "expires_in": "3565", "access_type": "online" }
The text was updated successfully, but these errors were encountered:
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Hello I am facing an issue where some of my requests are passing the client auth and some not.
I am using credentials auth. Init client example bellow (behaviour is the same if I pass the projectId too):
const client = new VehicleServiceClient({ credentials: { client_email: superServiceAccount, private_key: superPrivateKey, }, });
Example that works is
client.searchVehicles(...)
Example that does NOT work is
client.createVehicle(...)
it returnsError: 7 PERMISSION_DENIED: JWT does not contain any scopes.
client.auth.getAccessToken()
to get the token and then decoded it onhttps://oauth2.googleapis.com/tokeninfo?access_token=
, and got this bellow which seems fine:{ "azp": "107260674233372867632", "aud": "107260674233372867632", "scope": "https://www.googleapis.com/auth/cloud-platform", "exp": "1735572110", "expires_in": "3565", "access_type": "online" }
The text was updated successfully, but these errors were encountered: