/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/ |
D | test_file.py | 70 access_token = 'foo' 78 access_token, client_id, client_secret, 132 new_cred.access_token = 'bar' 135 access_token = '1/3w' 136 token_response = {'access_token': access_token, 'expires_in': 3600} 142 self.assertEquals(credentials.access_token, access_token) 154 new_cred.access_token = 'bar' 157 access_token = '1/3w' 158 token_response = {'access_token': access_token, 'expires_in': 3600} 170 self.assertEqual(credentials.access_token, access_token) [all …]
|
D | test_gce.py | 44 self.assertEquals(None, c.access_token) 46 self.assertEquals('this-is-a-token', c.access_token) 67 self.assertEqual(c.access_token, c2.access_token) 92 self.assertEqual('this-is-a-token', token.access_token)
|
D | test_devshell.py | 91 self.assertEqual(response.access_token, 'sometoken') 103 self.assertEqual('sometoken', creds.access_token) 110 self.assertEqual(None, creds.access_token) 117 self.assertEqual(None, creds.access_token) 125 self.assertEqual('sometoken', creds.access_token)
|
D | test_appengine.py | 180 self.assertEqual('a_token_123', credentials.access_token) 192 self.assertEqual('a_token_123', credentials.access_token) 209 self.assertEqual('a_token_456', credentials.access_token) 239 self.assertEqual('a_token_123', token.access_token) 316 access_token = 'foo' 323 access_token, client_id, client_secret, 339 self.assertEqual('bar', credmodel.credentials.access_token) 350 self.assertEqual('bar', credmodel.credentials.access_token) 357 self.assertEqual('bar', credentials.access_token) 376 self.assertEqual(old_creds.access_token, 'foo') [all …]
|
D | test_keyring.py | 55 access_token = 'foo' 63 access_token, client_id, client_secret, 89 self.assertEqual('foo', restored.access_token)
|
D | test_oauth2client.py | 199 self.assertEqual(None, credentials.access_token) 573 access_token = 'foo' 580 access_token, client_id, client_secret, 656 access_token = u'foo' 664 credentials = OAuth2Credentials(access_token, client_id, client_secret, 687 access_token = u'foo' 695 credentials = OAuth2Credentials(access_token, client_id, client_secret, 728 self.assertEqual('first_token', token.access_token) 734 self.assertEqual('first_token', token.access_token) 743 self.assertEqual('second_token', token.access_token) [all …]
|
D | test_service_account.py | 106 self.assertEqual('first_token', token.access_token) 112 self.assertEqual('first_token', token.access_token) 121 self.assertEqual('second_token', token.access_token)
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/ |
D | oauth2l_test.py | 69 self.access_token = 'ya29.abdefghijklmnopqrstuvwxyz' 72 self.access_token, self.user_agent) 82 self.assertEqual(self.access_token, output) 90 header = 'Authorization: Bearer %s' % self.access_token 99 header = 'Authorization: Bearer %s' % self.access_token 111 '"access_token": "%s",' % self.access_token, 125 '"access_token":"%s",' % self.access_token, 138 self.access_token] 153 self.access_token = 'ya29.abdefghijklmnopqrstuvwxyz' 156 self.access_token, self.user_agent) [all …]
|
D | oauth2l.py | 123 return credentials.access_token 125 return 'Authorization: Bearer %s' % credentials.access_token 144 def _GetTokenScopes(access_token): argument 146 url = _OAUTH2_TOKENINFO_TEMPLATE.format(access_token=access_token) 156 def _ValidateToken(access_token): argument 158 return bool(_GetTokenScopes(access_token)) 177 if not _ValidateToken(credentials.access_token): 188 def RunWithArgs(self, access_token): argument 191 oauth2client.client.AccessTokenCredentials(access_token, 234 def RunWithArgs(self, access_token): argument [all …]
|
/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/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/chromium-trace/catapult/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/gcs_oauth2_boto_plugin/ |
D | oauth2_client.py | 312 access_token = self.access_token_cache.GetToken(cache_key) 313 LOG.debug('GetAccessToken: token from cache: %s', access_token) 314 if access_token is None or access_token.ShouldRefresh(): 316 access_token = self.FetchAccessToken() 317 LOG.debug('GetAccessToken: fresh access token: %s', access_token) 318 self.access_token_cache.PutToken(cache_key, access_token) 319 return access_token 390 return AccessToken(credentials.access_token, credentials.token_expiry, 462 retval.access_token = data['access_token'] 578 access_token = self.GetAccessToken() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/ |
D | client.py | 459 def __init__(self, access_token, client_id, client_secret, refresh_token, argument 488 self.access_token = access_token 539 if not self.access_token: 615 headers['Authorization'] = 'Bearer ' + self.access_token 680 if not self.access_token or self.access_token_expired: 684 return AccessTokenInfo(access_token=self.access_token, 776 new_cred.access_token != self.access_token and 806 self.access_token = d['access_token'] 843 self._do_revoke(http_request, self.refresh_token or self.access_token) 903 def __init__(self, access_token, user_agent, revoke_uri=None): argument [all …]
|
D | devshell.py | 62 self.access_token = pbl[2] if pbl_len > 2 else None 117 self.access_token = self.devshell_response.access_token
|
D | gce.py | 89 self.access_token = d['accessToken']
|
/external/libweave/src/privet/ |
D | security_manager.cc | 91 std::vector<uint8_t>* access_token, in CreateAccessTokenImpl() argument 102 if (access_token) in CreateAccessTokenImpl() 103 *access_token = auth_manager_->CreateAccessToken(user_info, kTtl); in CreateAccessTokenImpl() 118 std::vector<uint8_t>* access_token, in CreateAccessTokenImpl() argument 131 return CreateAccessTokenImpl(auth_type, desired_scope, access_token, in CreateAccessTokenImpl() 140 return CreateAccessTokenImpl(auth_type, desired_scope, access_token, in CreateAccessTokenImpl() 148 auth_code, kTtl, access_token, access_token_scope, access_token_ttl, in CreateAccessTokenImpl() 159 std::string* access_token, in CreateAccessToken() argument 178 if (access_token) in CreateAccessToken() 179 *access_token = Base64Encode(access_token_decoded); in CreateAccessToken()
|
D | security_manager.h | 65 std::string* access_token, 106 std::vector<uint8_t>* access_token, 112 std::vector<uint8_t>* access_token,
|
D | auth_manager_unittest.cc | 249 std::vector<uint8_t> access_token; in TEST_F() local 261 &access_token, &scope, &ttl, nullptr)); in TEST_F() 263 EXPECT_TRUE(auth_.ParseAccessToken(access_token, &user_info, nullptr)); in TEST_F() 271 std::vector<uint8_t> access_token; in TEST_F() local
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/ |
D | credentials_lib.py | 332 self.access_token = credential_info['access_token'] 353 credentials.access_token = data['access_token'] 405 self.access_token = token 483 query_args = {'access_token': credentials.access_token}
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/ |
D | devshell_auth_plugin.py | 39 http_request.headers['Authorization'] = 'Bearer %s' % self.creds.access_token
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/samples/ |
D | oauth2_for_devices.py | 27 print("Access token: {0}".format(credentials.access_token))
|
/external/chromium-trace/catapult/trace_processor/third_party/cloudstorage/ |
D | common.py | 74 def set_access_token(access_token): argument 90 _access_token = access_token
|