/external/grpc-grpc/src/core/lib/security/credentials/oauth2/ |
D | oauth2_credentials.cc | 37 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 …]
|
D | oauth2_credentials.h | 32 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/ |
D | json_token_test.cc | 376 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 …]
|
D | fetch_oauth2.cc | 67 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/ |
D | json_token_test.cc | 427 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 …]
|
D | fetch_oauth2.cc | 36 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/ |
D | oauth2_credentials.cc | 54 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 …]
|
D | oauth2_credentials.h | 41 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/ |
D | oauth.py | 74 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/ |
D | test_dictionary_storage.py | 75 self.assertEqual(returned.refresh_token, credentials.refresh_token) 91 self.assertEqual(returned.refresh_token, credentials.refresh_token)
|
D | test_sqlalchemy.py | 49 refresh_token='refresh_token', 64 self.assertEqual(result.refresh_token, self.credentials.refresh_token)
|
D | test_keyring_storage.py | 126 refresh_token = '1/0/a.df219fjls0' 132 refresh_token, token_expiry, oauth2client.GOOGLE_TOKEN_URI,
|
D | test_flask_util.py | 346 self.oauth2.credentials.refresh_token, 347 credentials.refresh_token) 365 credentials.refresh_token = None 417 credentials.refresh_token = None
|
D | test_multiprocess_file_storage.py | 53 refresh_token = '1/0/a.df219fjls0' 61 refresh_token, token_expiry, token_uri,
|
D | test_appengine.py | 328 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)
|
D | test_multistore_file.py | 96 refresh_token = '1/0/a.df219fjls0' 103 refresh_token, token_expiry, token_uri,
|
/external/python/oauth2client/oauth2client/ |
D | client.py | 470 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/ |
D | test_django_storage.py | 36 refresh_token = '1/0/a.df219fjls0' 42 refresh_token, token_expiry, GOOGLE_TOKEN_URI,
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | oauth_client.cc | 243 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()
|
D | oauth_client_test.cc | 71 "refresh_token": "test_refresh_token", in TEST()
|
/external/python/oauth2client/samples/ |
D | oauth2_for_devices.py | 29 print("Refresh token: {0}".format(credentials.refresh_token))
|
/external/python/oauth2client/tests/ |
D | test_file.py | 66 refresh_token = '1/0/a.df219fjls0' 73 refresh_token, token_expiry, token_uri,
|
D | test_client.py | 289 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/ |
D | run_system_tests.py | 91 refresh_token=client_credentials['refresh_token'],
|
/external/python/oauth2client/oauth2client/contrib/ |
D | flask_util.py | 450 not self.credentials.refresh_token):
|