Skip to content

Commit

Permalink
chore: Specify auth scope for Ray on Vertex bearer token
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 587932598
  • Loading branch information
matthew29tang authored and Copybara-Service committed Dec 5, 2023
1 parent 5780513 commit 7938d48
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def valid_dashboard_address(address):

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

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

0 comments on commit 7938d48

Please sign in to comment.