/external/python/oauth2client/tests/ |
D | test_file.py | 64 access_token = 'foo' 72 access_token, client_id, client_secret, 125 new_cred.access_token = 'bar' 128 access_token = '1/3w' 129 token_response = {'access_token': access_token, 'expires_in': 3600} 135 self.assertEquals(credentials.access_token, access_token) 148 new_cred.access_token = 'bar' 151 access_token = '1/3w' 152 token_response = {'access_token': access_token, 'expires_in': 3600} 166 self.assertEqual(credentials.access_token, access_token) [all …]
|
D | test_service_account.py | 307 self.assertIsNone(credentials.access_token) 312 self.assertEqual(token1, token.access_token) 325 self.assertEqual(credentials.access_token, token1) 329 self.assertEqual(token1, token.access_token) 342 self.assertEqual(credentials.access_token, token1) 347 self.assertEqual(token2, token.access_token) 363 self.assertEqual(credentials.access_token, token2) 404 token_info.access_token, 416 token_info.access_token, 427 token_info.access_token, [all …]
|
D | test_client.py | 286 self.assertEqual(None, credentials.access_token) 876 access_token = 'foo' 883 access_token, client_id, client_secret, 998 access_token = u'foo' 1007 access_token, client_id, client_secret, refresh_token, 1028 access_token = u'foo' 1037 access_token, client_id, client_secret, refresh_token, 1120 credentials.access_token = None 1124 self.assertEqual(credentials.access_token, None) 1129 self.assertEqual(token1, token.access_token) [all …]
|
/external/python/oauth2client/tests/contrib/ |
D | test_multiprocess_file_storage.py | 51 access_token = 'foo' 60 access_token, 'test-client-id', client_secret, 103 self.assertEqual('foo', credentials.access_token) 110 self.assertEqual('foo', credentials.access_token) 126 self.assertEqual(credentials.access_token, 'new_token') 129 self.assertEqual(retrieved.access_token, 'new_token') 162 self.assertEqual(credentials.access_token, 'b') 175 self.assertEqual(credentials.access_token, 'b') 179 self.assertEqual(retrieved.access_token, 'b') 250 results['key'].access_token, credentials.access_token) [all …]
|
D | test_devshell.py | 57 self.assertEqual(info_response.access_token, None) 63 access_token = 'access_token' 66 [user_email, project_id, access_token, expires_in]) 70 self.assertEqual(info_response.access_token, access_token) 203 self.assertEqual(response.access_token, 'sometoken') 218 self.assertEqual('sometoken', creds.access_token) 229 self.assertEqual(None, creds.access_token) 237 self.assertEqual(None, creds.access_token) 245 self.assertEqual('sometoken', creds.access_token)
|
D | test_multistore_file.py | 94 access_token = 'foo' 102 access_token, client_id, client_secret, 220 self.assertEquals('foo', credentials.access_token) 243 self.assertEqual(credentials.access_token, 244 stored_credentials.access_token) 262 self.assertEqual(credentials.access_token, 263 stored_credentials.access_token) 270 self.assertEqual(credentials.access_token, 271 stored_credentials.access_token) 295 self.assertEqual(credentials.access_token, [all …]
|
D | test_dictionary_storage.py | 73 self.assertEqual(returned.access_token, credentials.access_token) 89 self.assertEqual(returned.access_token, credentials.access_token)
|
D | test_appengine.py | 160 self.assertEqual('a_token_123', credentials.access_token) 173 self.assertEqual('a_token_123', credentials.access_token) 190 self.assertEqual('a_token_456', credentials.access_token) 264 self.assertEqual('a_token_123', token.access_token) 325 access_token = 'foo' 332 access_token, client_id, client_secret, 388 access_token = 'foo' 395 access_token, client_id, client_secret, 432 self.assertEqual('bar', credmodel.credentials.access_token) 443 self.assertEqual('bar', credmodel.credentials.access_token) [all …]
|
D | test_sqlalchemy.py | 46 access_token='token', 61 self.assertEqual(result.access_token, self.credentials.access_token)
|
D | test_keyring_storage.py | 123 access_token = 'foo' 131 access_token, client_id, client_secret, 157 self.assertEqual('foo', restored.access_token)
|
D | test_gce.py | 76 self.assertIsNone(credentials.access_token) 78 self.assertEqual(credentials.access_token, 'A') 83 self.assertEqual(credentials.access_token, 'B')
|
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
D | client_lib_test.py | 54 access_token = None 62 access_token = oauth_helpers.get_oauth2_user_token( 67 access_token=access_token) 85 api_key=api_key, access_token=robot_token) 100 access_token=robot_token)
|
D | common_client.py | 19 access_token=None,): argument 29 self.access_token = access_token 37 if not self.access_token: 40 headers = {'Authorization': self.access_token}
|
/external/grpc-grpc/src/python/grpcio/grpc/ |
D | _auth.py | 31 access_token = future.result().access_token 35 _sign_request(callback, access_token, None) 71 def __init__(self, access_token): argument 72 self._access_token = access_token
|
/external/autotest/client/common_lib/cros/fake_device_server/ |
D | devices.py | 111 access_token = common_util.get_access_token() 112 api_key = self._oauth.get_api_key_from_access_token(access_token) 138 access_token = common_util.get_access_token() 139 api_key = self._oauth.get_api_key_from_access_token(access_token) 174 access_token = common_util.get_access_token() 175 if not access_token: 177 api_key = self._oauth.get_api_key_from_access_token(access_token)
|
D | oauth.py | 33 def get_api_key_from_access_token(self, access_token): argument 34 if access_token == self._device_access_token: 41 access_token = common_util.get_access_token() 42 if access_token == self._device_access_token: 45 self._device_access_token, access_token)
|
D | registration_tickets.py | 77 access_token = common_util.grab_header_field('Authorization') 78 if not access_token: 82 access_token_list = access_token.split()
|
/external/python/oauth2client/oauth2client/ |
D | client.py | 470 def __init__(self, access_token, client_id, client_secret, refresh_token, argument 505 self.access_token = access_token 577 headers['Authorization'] = 'Bearer ' + self.access_token 674 if not self.access_token or self.access_token_expired: 678 return AccessTokenInfo(access_token=self.access_token, 772 new_cred.access_token != self.access_token and 802 self.access_token = d['access_token'] 844 self._do_revoke(http_request, self.refresh_token or self.access_token) 887 self._do_retrieve_scopes(http_request, self.access_token) 949 def __init__(self, access_token, user_agent, revoke_uri=None): argument [all …]
|
D | service_account.py | 469 credentials.access_token = json_data['access_token'] 614 if self.access_token is None or self.access_token_expired: 617 access_token=self.access_token, expires_in=self._expires_in()) 622 access_token=token, expires_in=self._MAX_TOKEN_LIFETIME_SECS) 656 self.access_token, self.token_expiry = self._create_token()
|
/external/python/oauth2client/scripts/ |
D | run_gce_system_tests.py | 38 self.assertIsNone(credentials.access_token) 40 self.assertIsNotNone(credentials.access_token) 43 query_params = {'access_token': credentials.access_token}
|
/external/python/oauth2client/oauth2client/contrib/ |
D | devshell.py | 67 self.access_token = pbl[2] if pbl_len > 2 else None 122 self.access_token = self.devshell_response.access_token
|
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/ |
D | oauth2_credentials.cc | 146 grpc_json* access_token = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response() local 163 access_token = ptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response() 170 if (access_token == nullptr || access_token->type != GRPC_JSON_STRING) { in grpc_oauth2_token_fetcher_credentials_parse_server_response() 186 access_token->value); in grpc_oauth2_token_fetcher_credentials_parse_server_response() 515 const char* access_token, void* reserved) { in grpc_access_token_credentials_create() argument 528 gpr_asprintf(&token_md_value, "Bearer %s", access_token); in grpc_access_token_credentials_create()
|
/external/adhd/scripts/audio_tuning/frontend/ |
D | google_drive_picker.js | 57 var accessToken = gapi.auth.getToken().access_token; 79 var accessToken = gapi.auth.getToken().access_token;
|
/external/grpc-grpc/test/cpp/interop/ |
D | client_helper.cc | 73 grpc::string access_token(token + sizeof("Bearer ") - 1); in GetOauth2AccessToken() local 75 return access_token; in GetOauth2AccessToken()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/oauth2/ |
D | oauth2_credentials.cc | 163 const char* access_token = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response() local 188 access_token = it->second.string_value().c_str(); in grpc_oauth2_token_fetcher_credentials_parse_server_response() 210 absl::StrCat(token_type, " ", access_token))); in grpc_oauth2_token_fetcher_credentials_parse_server_response() 732 const char* access_token) in grpc_access_token_credentials() argument 737 grpc_slice_from_cpp_string(absl::StrCat("Bearer ", access_token))); in grpc_access_token_credentials() 747 const char* access_token, void* reserved) { in grpc_access_token_credentials_create() argument 753 return grpc_core::MakeRefCounted<grpc_access_token_credentials>(access_token) in grpc_access_token_credentials_create()
|