fix: Add Spanner admin scope to Spanner tool default Oauth scopes

PiperOrigin-RevId: 795519063
This commit is contained in:
Google Team Member
2025-08-15 10:15:15 -07:00
committed by Copybara-Service
parent 8a9a271141
commit b66054dd0d
2 changed files with 5 additions and 1 deletions
@@ -18,7 +18,10 @@ from ...utils.feature_decorator import experimental
from .._google_credentials import BaseGoogleCredentialsConfig
SPANNER_TOKEN_CACHE_KEY = "spanner_token_cache"
SPANNER_DEFAULT_SCOPE = ["https://www.googleapis.com/auth/spanner.data"]
SPANNER_DEFAULT_SCOPE = [
"https://www.googleapis.com/auth/spanner.admin",
"https://www.googleapis.com/auth/spanner.data",
]
@experimental
@@ -48,6 +48,7 @@ class TestSpannerCredentials:
assert config.client_id == "test_client_id"
assert config.client_secret == "test_client_secret"
assert config.scopes == [
"https://www.googleapis.com/auth/spanner.admin",
"https://www.googleapis.com/auth/spanner.data",
]