Home
last modified time | relevance | path

Searched refs:refresh_token (Results 1 – 25 of 31) sorted by relevance

12

/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc37 const grpc_auth_refresh_token* refresh_token) { in grpc_auth_refresh_token_is_valid() argument
38 return (refresh_token != nullptr) && in grpc_auth_refresh_token_is_valid()
39 strcmp(refresh_token->type, GRPC_AUTH_JSON_TYPE_INVALID); in grpc_auth_refresh_token_is_valid()
66 &result.refresh_token)) { in grpc_auth_refresh_token_create_from_json()
87 void grpc_auth_refresh_token_destruct(grpc_auth_refresh_token* refresh_token) { in grpc_auth_refresh_token_destruct() argument
88 if (refresh_token == nullptr) return; in grpc_auth_refresh_token_destruct()
89 refresh_token->type = GRPC_AUTH_JSON_TYPE_INVALID; in grpc_auth_refresh_token_destruct()
90 if (refresh_token->client_id != nullptr) { in grpc_auth_refresh_token_destruct()
91 gpr_free(refresh_token->client_id); in grpc_auth_refresh_token_destruct()
92 refresh_token->client_id = nullptr; in grpc_auth_refresh_token_destruct()
[all …]
Doauth2_credentials.h32 char* refresh_token; member
37 const grpc_auth_refresh_token* refresh_token);
50 void grpc_auth_refresh_token_destruct(grpc_auth_refresh_token* refresh_token);
85 grpc_auth_refresh_token refresh_token; member
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Djson_token_test.cc376 grpc_auth_refresh_token refresh_token = in test_parse_refresh_token_success() local
378 GPR_ASSERT(grpc_auth_refresh_token_is_valid(&refresh_token)); in test_parse_refresh_token_success()
379 GPR_ASSERT(refresh_token.type != nullptr && in test_parse_refresh_token_success()
380 (strcmp(refresh_token.type, "authorized_user") == 0)); in test_parse_refresh_token_success()
381 GPR_ASSERT(refresh_token.client_id != nullptr && in test_parse_refresh_token_success()
382 (strcmp(refresh_token.client_id, in test_parse_refresh_token_success()
385 refresh_token.client_secret != nullptr && in test_parse_refresh_token_success()
386 (strcmp(refresh_token.client_secret, "EmssLNjJy1332hD4KFsecret") == 0)); in test_parse_refresh_token_success()
387 GPR_ASSERT(refresh_token.refresh_token != nullptr && in test_parse_refresh_token_success()
388 (strcmp(refresh_token.refresh_token, in test_parse_refresh_token_success()
[all …]
Dfetch_oauth2.cc67 grpc_slice refresh_token; in create_refresh_token_creds() local
70 grpc_load_file(json_refresh_token_file_path, 1, &refresh_token))); in create_refresh_token_creds()
72 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(refresh_token), in create_refresh_token_creds()
74 gpr_slice_unref(refresh_token); in create_refresh_token_creds()
/external/grpc-grpc/test/core/security/
Djson_token_test.cc427 grpc_auth_refresh_token refresh_token = in test_parse_refresh_token_success() local
429 GPR_ASSERT(grpc_auth_refresh_token_is_valid(&refresh_token)); in test_parse_refresh_token_success()
430 GPR_ASSERT(refresh_token.type != nullptr && in test_parse_refresh_token_success()
431 (strcmp(refresh_token.type, "authorized_user") == 0)); in test_parse_refresh_token_success()
432 GPR_ASSERT(refresh_token.client_id != nullptr && in test_parse_refresh_token_success()
433 (strcmp(refresh_token.client_id, in test_parse_refresh_token_success()
436 refresh_token.client_secret != nullptr && in test_parse_refresh_token_success()
437 (strcmp(refresh_token.client_secret, "EmssLNjJy1332hD4KFsecret") == 0)); in test_parse_refresh_token_success()
438 GPR_ASSERT(refresh_token.refresh_token != nullptr && in test_parse_refresh_token_success()
439 (strcmp(refresh_token.refresh_token, in test_parse_refresh_token_success()
[all …]
Dfetch_oauth2.cc36 grpc_slice refresh_token; in create_refresh_token_creds() local
39 grpc_load_file(json_refresh_token_file_path, 1, &refresh_token))); in create_refresh_token_creds()
41 reinterpret_cast<const char*> GRPC_SLICE_START_PTR(refresh_token), in create_refresh_token_creds()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc54 const grpc_auth_refresh_token* refresh_token) { in grpc_auth_refresh_token_is_valid() argument
55 return (refresh_token != nullptr) && in grpc_auth_refresh_token_is_valid()
56 strcmp(refresh_token->type, GRPC_AUTH_JSON_TYPE_INVALID) != 0; in grpc_auth_refresh_token_is_valid()
85 &result.refresh_token)) { in grpc_auth_refresh_token_create_from_json()
106 void grpc_auth_refresh_token_destruct(grpc_auth_refresh_token* refresh_token) { in grpc_auth_refresh_token_destruct() argument
107 if (refresh_token == nullptr) return; in grpc_auth_refresh_token_destruct()
108 refresh_token->type = GRPC_AUTH_JSON_TYPE_INVALID; in grpc_auth_refresh_token_destruct()
109 if (refresh_token->client_id != nullptr) { in grpc_auth_refresh_token_destruct()
110 gpr_free(refresh_token->client_id); in grpc_auth_refresh_token_destruct()
111 refresh_token->client_id = nullptr; in grpc_auth_refresh_token_destruct()
[all …]
Doauth2_credentials.h41 char* refresh_token; member
45 const grpc_auth_refresh_token* refresh_token);
58 void grpc_auth_refresh_token_destruct(grpc_auth_refresh_token* refresh_token);
111 grpc_auth_refresh_token refresh_token);
114 const grpc_auth_refresh_token& refresh_token() const { in refresh_token() function
/external/autotest/client/common_lib/cros/fake_device_server/
Doauth.py74 refresh_token = params.get('refresh_token')
75 if refresh_token and refresh_token != self._device_refresh_token:
78 self._device_refresh_token, refresh_token)
/external/python/oauth2client/tests/contrib/
Dtest_dictionary_storage.py75 self.assertEqual(returned.refresh_token, credentials.refresh_token)
91 self.assertEqual(returned.refresh_token, credentials.refresh_token)
Dtest_sqlalchemy.py49 refresh_token='refresh_token',
64 self.assertEqual(result.refresh_token, self.credentials.refresh_token)
Dtest_keyring_storage.py126 refresh_token = '1/0/a.df219fjls0'
132 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
Dtest_flask_util.py346 self.oauth2.credentials.refresh_token,
347 credentials.refresh_token)
365 credentials.refresh_token = None
417 credentials.refresh_token = None
Dtest_multiprocess_file_storage.py53 refresh_token = '1/0/a.df219fjls0'
61 refresh_token, token_expiry, token_uri,
Dtest_appengine.py328 refresh_token = '1/0/a.df219fjls0'
333 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
391 refresh_token = '1/0/a.df219fjls0'
396 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
705 self.found_credentials.refresh_token)
814 self.found_credentials.refresh_token)
Dtest_multistore_file.py96 refresh_token = '1/0/a.df219fjls0'
103 refresh_token, token_expiry, token_uri,
/external/python/oauth2client/oauth2client/
Dclient.py470 def __init__(self, access_token, client_id, client_secret, refresh_token, argument
508 self.refresh_token = refresh_token
734 'refresh_token': self.refresh_token,
803 self.refresh_token = d.get('refresh_token', self.refresh_token)
844 self._do_revoke(http_request, self.refresh_token or self.access_token)
1095 def __init__(self, access_token, client_id, client_secret, refresh_token, argument
1119 access_token, client_id, client_secret, refresh_token,
1173 'refresh_token': self.refresh_token
1426 refresh_token=client_credentials['refresh_token'],
2031 refresh_token = d.get('refresh_token', None)
[all …]
/external/python/oauth2client/tests/contrib/django_util/
Dtest_django_storage.py36 refresh_token = '1/0/a.df219fjls0'
42 refresh_token, token_expiry, GOOGLE_TOKEN_URI,
/external/tensorflow/tensorflow/core/platform/cloud/
Doauth_client.cc243 string client_id, client_secret, refresh_token; in GetTokenFromRefreshTokenJson() local
246 TF_RETURN_IF_ERROR(ReadJsonString(json, "refresh_token", &refresh_token)); in GetTokenFromRefreshTokenJson()
250 "&refresh_token=", refresh_token, "&grant_type=refresh_token"); in GetTokenFromRefreshTokenJson()
Doauth_client_test.cc71 "refresh_token": "test_refresh_token", in TEST()
/external/python/oauth2client/samples/
Doauth2_for_devices.py29 print("Refresh token: {0}".format(credentials.refresh_token))
/external/python/oauth2client/tests/
Dtest_file.py66 refresh_token = '1/0/a.df219fjls0'
73 refresh_token, token_expiry, token_uri,
Dtest_client.py289 self.assertEqual('alabalaportocala', credentials.refresh_token)
879 refresh_token = '1/0/a.df219fjls0'
884 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
961 self.credentials.refresh_token = None
1001 refresh_token = u'1/0/a.df219fjls0'
1007 access_token, client_id, client_secret, refresh_token,
1031 refresh_token = u'1/0/a.df219fjls0'
1037 access_token, client_id, client_secret, refresh_token,
1895 self.assertEqual('8xLOxBtZp8', credentials.refresh_token)
1911 refresh_token = '8xLOxBtZp8'
[all …]
/external/python/oauth2client/scripts/
Drun_system_tests.py91 refresh_token=client_credentials['refresh_token'],
/external/python/oauth2client/oauth2client/contrib/
Dflask_util.py450 not self.credentials.refresh_token):

12