Skip to content

Commit

Permalink
Code to reproduce issue with scopes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewi committed Nov 14, 2017
1 parent 0fb3ca0 commit d2975b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test-infra/airflow/dags/credentials_repo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import google.auth
import google.auth.transport
import google.auth.transport.requests
import os
print(os.getenv("GOOGLE_APPLICATION_CREDENTIALS", ""))
#credentials, project_id = google.auth.default(scopes=["https://www.googleapis.com/auth/userinfo.email"])
credentials, project_id = google.auth.default()
request = google.auth.transport.requests.Request()
credentials.refresh(request)

0 comments on commit d2975b5

Please sign in to comment.