Skip to content

fix(provider): add required OAuth scope for Google authentication#20214

Open
SOUMITRO-SAHA wants to merge 1 commit intoanomalyco:devfrom
SOUMITRO-SAHA:fix/20202-vertex-oauth-scope
Open

fix(provider): add required OAuth scope for Google authentication#20214
SOUMITRO-SAHA wants to merge 1 commit intoanomalyco:devfrom
SOUMITRO-SAHA:fix/20202-vertex-oauth-scope

Conversation

@SOUMITRO-SAHA
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #20202

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The Google Vertex provider was missing OAuth scopes when authenticating. This caused GLM models to fail with "invalid_scope" errors because Google didn't know what permissions were being requested.

Added the https://www.googleapis.com/auth/cloud-platform scope to the GoogleAuth configuration so Google knows we need access to Vertex AI.

How did you verify your code works?

Tested locally with GLM models through the Google Vertex provider. The authentication now succeeds and models respond correctly.

Screenshots / recordings

2026-03-31.12-34-53.mp4

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Add missing Google Cloud Platform scope to GoogleAuth initialization to
ensure
proper authentication with Vertex AI services. Without this scope, the
authentication flow would fail when accessing Google Cloud resources.

This fixes potential authentication issues in the provider
implementation.
@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Found a potentially related PR:

#19931 - feat(provider): support per-provider Google credentials for Vertex AI
#19931

This PR may be related as it also deals with Google Vertex AI provider configuration. You should check if this PR already addresses the OAuth scope issue or if the two changes are complementary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Error: invalid_scope: Invalid OAuth scope or ID token audience provided.. when using GLM models with Google Vertex

1 participant