Chromium Code Reviews| Index: appengine/findit/common/auth_util.py |
| diff --git a/appengine/findit/common/auth_util.py b/appengine/findit/common/auth_util.py |
| index e9fe427e9ec6d977c355998b2fb4e9443cf307e5..43d60b74808611843d73baf9f69fe3f27c8c05d0 100644 |
| --- a/appengine/findit/common/auth_util.py |
| +++ b/appengine/findit/common/auth_util.py |
| @@ -8,7 +8,7 @@ from google.appengine.api.app_identity import app_identity |
| _EMAIL_SCOPE = 'https://www.googleapis.com/auth/userinfo.email' |
| -def GetAuthToken(): # pragma: no cover |
| +def GetAuthToken(scope=_EMAIL_SCOPE): # pragma: no cover |
| """Gets auth token for requests to swarming server and isolated server.""" |
|
stgao
2016/05/09 21:44:45
This needs updating now.
Sharu Jiang
2016/05/09 22:01:48
Done.
|
| - auth_token, _ = app_identity.get_access_token(_EMAIL_SCOPE) |
| + auth_token, _ = app_identity.get_access_token(scope) |
| return auth_token |