Searched refs:token_expiry (Results 1 – 20 of 20) sorted by relevance
/external/python/oauth2client/oauth2client/ |
D | client.py | 471 token_expiry, token_uri, user_agent, revoke_uri=None, argument 510 self.token_expiry = token_expiry 658 if not self.token_expiry: 662 if now >= self.token_expiry: 664 now, self.token_expiry) 703 if self.token_expiry: 705 if self.token_expiry > now: 706 time_delta = self.token_expiry - now 806 self.token_expiry = delta + _UTCNOW() 808 self.token_expiry = None [all …]
|
D | service_account.py | 472 token_expiry = json_data.get('token_expiry', None) 473 if token_expiry is not None: 474 credentials.token_expiry = datetime.datetime.strptime( 475 token_expiry, client.EXPIRY_FORMAT) 656 self.access_token, self.token_expiry = self._create_token()
|
/external/python/oauth2client/tests/contrib/ |
D | test_sqlalchemy.py | 50 token_expiry=datetime.datetime.utcnow(), 65 self.assertEqual(result.token_expiry, self.credentials.token_expiry)
|
D | test_keyring_storage.py | 127 token_expiry = datetime.datetime.utcnow() 132 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
|
D | test_devshell.py | 221 creds.token_expiry) 230 self.assertEqual(None, creds.token_expiry)
|
D | test_multiprocess_file_storage.py | 54 token_expiry = expiration or ( 61 refresh_token, token_expiry, token_uri,
|
D | test_multistore_file.py | 97 token_expiry = expiration or datetime.datetime.utcnow() 103 refresh_token, token_expiry, token_uri,
|
D | test_appengine.py | 329 token_expiry = datetime.datetime.utcnow() 333 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI, 392 token_expiry = datetime.datetime.utcnow() 396 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
|
D | test_flask_util.py | 357 credentials.token_expiry = datetime.datetime(1990, 5, 28) 403 credentials.token_expiry = datetime.datetime(1990, 5, 28)
|
/external/python/oauth2client/oauth2client/contrib/ |
D | _metadata.py | 121 token_expiry = client._UTCNOW() + datetime.timedelta( 123 return token_json['access_token'], token_expiry
|
D | devshell.py | 126 self.token_expiry = client._UTCNOW() + delta 128 self.token_expiry = None
|
D | gce.py | 135 self.access_token, self.token_expiry = _metadata.get_token(
|
/external/python/oauth2client/tests/ |
D | test_client.py | 290 self.assertEqual(None, credentials.token_expiry) 880 token_expiry = datetime.datetime.utcnow() 884 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI, 980 instance.token_expiry = None 981 self.credentials.token_expiry = None 1002 token_expiry = str(datetime.datetime.utcnow()) 1008 token_expiry, token_uri, user_agent, revoke_uri=revoke_uri) 1032 token_expiry = str(datetime.datetime.utcnow()) 1038 token_expiry, token_uri, user_agent, revoke_uri=revoke_uri) 1063 self.assertIsNone(credentials.token_expiry) [all …]
|
D | test_service_account.py | 309 self.assertIsNone(credentials.token_expiry) 311 self.assertEqual(credentials.token_expiry, EXPIRY_TIME) 343 credentials.token_expiry = NOW # Manually force expiry. 550 self.assertEquals(self.jwt.token_expiry, T3_EXPIRY_DATE) 579 self.assertEquals(self.jwt.token_expiry, T2_EXPIRY_DATE)
|
D | test_file.py | 67 token_expiry = expiration or datetime.datetime.utcnow() 73 refresh_token, token_expiry, token_uri,
|
/external/python/oauth2client/tests/contrib/django_util/ |
D | test_django_storage.py | 37 token_expiry = datetime.datetime.utcnow() 42 refresh_token, token_expiry, GOOGLE_TOKEN_URI,
|
/external/python/apitools/apitools/base/py/ |
D | credentials_lib.py | 422 self.token_expiry = ( 426 self.token_expiry = None 442 credentials.token_expiry = datetime.datetime.strptime(
|
/external/python/oauth2client/scripts/ |
D | run_system_tests.py | 92 token_expiry=None,
|
/external/python/oauth2client/ |
D | CHANGELOG.md | 5 * Populate `token_expiry` for GCE credentials. (#473) 77 * Add `token_expiry` to `devshell` credentials (#372)
|
/external/python/google-api-python-client/tests/ |
D | test_discovery.py | 1401 token_expiry = datetime.datetime.utcnow() 1405 refresh_token, token_expiry, GOOGLE_TOKEN_URI,
|