fix(provider): add required OAuth scope for Google authentication#20214
Open
SOUMITRO-SAHA wants to merge 1 commit intoanomalyco:devfrom
Open
fix(provider): add required OAuth scope for Google authentication#20214SOUMITRO-SAHA wants to merge 1 commit intoanomalyco:devfrom
SOUMITRO-SAHA wants to merge 1 commit intoanomalyco:devfrom
Conversation
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.
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 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #20202
Type of change
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-platformscope 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