mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: Add Spanner admin scope to Spanner tool default Oauth scopes
PiperOrigin-RevId: 795519063
This commit is contained in:
committed by
Copybara-Service
parent
8a9a271141
commit
b66054dd0d
@@ -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",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user