Skip to content

Commit 7938d48

Browse files
matthew29tangcopybara-github
authored andcommitted
chore: Specify auth scope for Ray on Vertex bearer token
PiperOrigin-RevId: 587932598
1 parent 5780513 commit 7938d48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google/cloud/aiplatform/preview/vertex_ray/util/_validation_utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ def valid_dashboard_address(address):
103103

104104
def get_bearer_token():
105105
"""Get bearer token through Application Default Credentials."""
106-
creds, _ = google.auth.default()
106+
creds, _ = google.auth.default(
107+
scopes=["https://www.googleapis.com/auth/cloud-platform"]
108+
)
107109

108110
# creds.valid is False, and creds.token is None
109111
# Need to refresh credentials to populate those

0 commit comments

Comments
 (0)