/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
common_client.py | 19 access_token=None,): 24 @param access_token: Access token to use to interact with server. 29 self.access_token = access_token 37 if not self.access_token: 40 headers = {'Authorization': self.access_token}
|
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)
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/ |
oauth2l.py | 58 '?access_token={access_token}' 123 return credentials.access_token 125 return 'Authorization: Bearer %s' % credentials.access_token 135 ' {credentials.access_token}', 144 def _GetTokenScopes(access_token): 146 url = _OAUTH2_TOKENINFO_TEMPLATE.format(access_token=access_token) 156 def _ValidateToken(access_token): 158 return bool(_GetTokenScopes(access_token)) [all...] |
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] [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/ |
test_file.py | 70 access_token = 'foo' 78 access_token, client_id, client_secret, 120 self.assertEquals(data['access_token'], 'foo') 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 [all...] |
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)
|
test_keyring.py | 55 access_token = 'foo' 63 access_token, client_id, client_secret, 89 self.assertEqual('foo', restored.access_token)
|
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)
|
test_service_account.py | 98 token_response_first = {'access_token': 'first_token', 'expires_in': S} 99 token_response_second = {'access_token': 'second_token', 'expires_in': S} 106 self.assertEqual('first_token', token.access_token) 112 self.assertEqual('first_token', token.access_token) 121 self.assertEqual('second_token', token.access_token)
|
test_appengine.py | 116 'access_token': 'foo_access_token', 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) 302 content = json.dumps({'access_token': 'bar'}) 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) [all...] |
http_mock.py | 71 ({'status': '200'}, b'{"access_token":"1/3w","expires_in":3600}'),
|
test_oauth2client.py | 199 self.assertEqual(None, credentials.access_token) 573 access_token = 'foo' 580 access_token, client_id, client_secret, 586 token_response = {'access_token': '1/3w', 'expires_in': 3600} 628 valid_bool_value=True, token_attr='access_token') 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, 720 token_response_first = {'access_token': 'first_token', 'expires_in': S [all...] |
/external/autotest/client/common_lib/cros/fake_device_server/ |
oauth.py | 33 def get_api_key_from_access_token(self, access_token): 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) 83 'access_token': self._device_access_token,
|
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)
|
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/gslib/ |
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/ |
oauth2_for_devices.py | 27 print("Access token: {0}".format(credentials.access_token))
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/ |
devshell.py | 62 self.access_token = pbl[2] if pbl_len > 2 else None 106 None, # access_token, initialized below 117 self.access_token = self.devshell_response.access_token
|
gce.py | 70 """Refreshes the access_token. 89 self.access_token = d['accessToken']
|
/external/libweave/src/privet/ |
security_manager.cc | 91 std::vector<uint8_t>* access_token, 102 if (access_token) 103 *access_token = auth_manager_->CreateAccessToken(user_info, kTtl); 118 std::vector<uint8_t>* access_token, 131 return CreateAccessTokenImpl(auth_type, desired_scope, access_token, 140 return CreateAccessTokenImpl(auth_type, desired_scope, access_token, 148 auth_code, kTtl, access_token, access_token_scope, access_token_ttl, 159 std::string* access_token, 178 if (access_token) 179 *access_token = Base64Encode(access_token_decoded) [all...] |
security_manager.h | 65 std::string* access_token, 106 std::vector<uint8_t>* access_token, 112 std::vector<uint8_t>* access_token,
|
security_delegate.h | 28 std::string* access_token,
|
auth_manager.h | 63 std::vector<uint8_t>* access_token,
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/gcs_oauth2_boto_plugin/ |
oauth2_client.py | 204 value: the access_token value to serialize. 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 [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/scripts/ |
run_system_tests.py | 86 access_token=None,
|