Home
last modified time | relevance | path

Searched refs:token_expiry (Results 1 – 20 of 20) sorted by relevance

/external/python/oauth2client/oauth2client/
Dclient.py471 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 …]
Dservice_account.py472 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/
Dtest_sqlalchemy.py50 token_expiry=datetime.datetime.utcnow(),
65 self.assertEqual(result.token_expiry, self.credentials.token_expiry)
Dtest_keyring_storage.py127 token_expiry = datetime.datetime.utcnow()
132 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
Dtest_devshell.py221 creds.token_expiry)
230 self.assertEqual(None, creds.token_expiry)
Dtest_multiprocess_file_storage.py54 token_expiry = expiration or (
61 refresh_token, token_expiry, token_uri,
Dtest_multistore_file.py97 token_expiry = expiration or datetime.datetime.utcnow()
103 refresh_token, token_expiry, token_uri,
Dtest_appengine.py329 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,
Dtest_flask_util.py357 credentials.token_expiry = datetime.datetime(1990, 5, 28)
403 credentials.token_expiry = datetime.datetime(1990, 5, 28)
/external/python/oauth2client/oauth2client/contrib/
D_metadata.py121 token_expiry = client._UTCNOW() + datetime.timedelta(
123 return token_json['access_token'], token_expiry
Ddevshell.py126 self.token_expiry = client._UTCNOW() + delta
128 self.token_expiry = None
Dgce.py135 self.access_token, self.token_expiry = _metadata.get_token(
/external/python/oauth2client/tests/
Dtest_client.py290 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 …]
Dtest_service_account.py309 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)
Dtest_file.py67 token_expiry = expiration or datetime.datetime.utcnow()
73 refresh_token, token_expiry, token_uri,
/external/python/oauth2client/tests/contrib/django_util/
Dtest_django_storage.py37 token_expiry = datetime.datetime.utcnow()
42 refresh_token, token_expiry, GOOGLE_TOKEN_URI,
/external/python/apitools/apitools/base/py/
Dcredentials_lib.py422 self.token_expiry = (
426 self.token_expiry = None
442 credentials.token_expiry = datetime.datetime.strptime(
/external/python/oauth2client/scripts/
Drun_system_tests.py92 token_expiry=None,
/external/python/oauth2client/
DCHANGELOG.md5 * Populate `token_expiry` for GCE credentials. (#473)
77 * Add `token_expiry` to `devshell` credentials (#372)
/external/python/google-api-python-client/tests/
Dtest_discovery.py1401 token_expiry = datetime.datetime.utcnow()
1405 refresh_token, token_expiry, GOOGLE_TOKEN_URI,