Home
last modified time | relevance | path

Searched refs:expires_in (Results 1 – 14 of 14) sorted by relevance

/external/python/oauth2client/oauth2client/contrib/
Ddevshell.py68 self.expires_in = pbl[3] if pbl_len > 3 else None
123 expires_in = self.devshell_response.expires_in
124 if expires_in is not None:
125 delta = datetime.timedelta(seconds=expires_in)
/external/python/oauth2client/tests/
Dtest_service_account.py313 self.assertEqual(lifetime, token.expires_in)
330 self.assertEqual(lifetime, token.expires_in)
348 self.assertEqual(lifetime, token.expires_in)
410 self.assertEqual(token_info.expires_in, T1_EXPIRY - T1)
420 self.assertEqual(token_info.expires_in, T1_EXPIRY - T2)
429 expires_in = token_info.expires_in
432 self.assertEqual(expires_in, T3_EXPIRY - T3)
448 expires_in = token_info.expires_in
453 self.assertEqual(expires_in, T1_EXPIRY - T1)
Dtest_client.py1130 self.assertEqual(lifetime, token.expires_in)
1144 self.assertEqual(lifetime, token.expires_in)
1160 self.assertEqual(lifetime, token.expires_in)
1176 def test_get_access_token_without_http(self, expires_in, refresh_mock): argument
1187 expires_in.assert_called_once_with()
1193 self.assertEqual(token_info.expires_in,
1194 expires_in.return_value)
1199 def test_get_access_token_with_http(self, expires_in, refresh_mock): argument
1212 self.assertEqual(token_info.expires_in,
1213 expires_in.return_value)
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_devshell.py58 self.assertEqual(info_response.expires_in, None)
64 expires_in = 1
66 [user_email, project_id, access_token, expires_in])
71 self.assertEqual(info_response.expires_in, expires_in)
Dtest_appengine.py265 self.assertEqual(None, token.expires_in)
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc148 grpc_json* expires_in = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response() local
167 expires_in = ptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
180 if (expires_in == nullptr || expires_in->type != GRPC_JSON_NUMBER) { in grpc_oauth2_token_fetcher_credentials_parse_server_response()
187 *token_lifetime = strtol(expires_in->value, nullptr, 10) * GPR_MS_PER_SEC; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c1233 int expires_in; in wpa_ft_expire_pmk_r0() local
1241 expires_in = r0->expiration - now.sec; in wpa_ft_expire_pmk_r0()
1248 if ((!r0->expiration || expires_in > 0) && in wpa_ft_expire_pmk_r0()
1254 if (r0->expiration && expires_in > 0) in wpa_ft_expire_pmk_r0()
1255 eloop_register_timeout(expires_in + 1, 0, in wpa_ft_expire_pmk_r0()
1327 int expires_in, int session_timeout, in wpa_ft_store_pmk_r0() argument
1347 if (expires_in > 0) in wpa_ft_store_pmk_r0()
1348 r0->expiration = now.sec + expires_in; in wpa_ft_store_pmk_r0()
1375 if (expires_in > 0) in wpa_ft_store_pmk_r0()
1376 eloop_register_timeout(expires_in + 1, 0, wpa_ft_expire_pmk_r0, in wpa_ft_store_pmk_r0()
[all …]
/external/tensorflow/tensorflow/core/platform/cloud/
Doauth_client.cc288 int64 expires_in = 0; in ParseOAuthResponse() local
289 TF_RETURN_IF_ERROR(ReadJsonInt(root, "expires_in", &expires_in)); in ParseOAuthResponse()
290 *expiration_timestamp_sec = request_timestamp_sec + expires_in; in ParseOAuthResponse()
Dgoogle_auth_provider_test.cc161 "expires_in": 3920, in TEST_F()
177 "expires_in": 3920, in TEST_F()
Doauth_client_test.cc42 "expires_in":3920,
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc165 const char* expires_in = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response() local
204 expires_in = it->second.string_value().c_str(); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
205 *token_lifetime = strtol(expires_in, nullptr, 10) * GPR_MS_PER_SEC; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
/external/python/oauth2client/oauth2client/
Dservice_account.py617 access_token=self.access_token, expires_in=self._expires_in())
622 access_token=token, expires_in=self._MAX_TOKEN_LIFETIME_SECS)
Dclient.py679 expires_in=self._expires_in())
/external/python/apitools/apitools/base/py/
Dcredentials_lib.py409 expires_in = int(credential_info['expires_in'])
411 datetime.timedelta(seconds=expires_in) +