Home
last modified time | relevance | path

Searched refs:access_token (Results 1 – 25 of 82) sorted by relevance

1234

/external/python/oauth2client/tests/
Dtest_file.py64 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 …]
Dtest_service_account.py307 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 …]
Dtest_client.py286 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/google-auth-library-python/google/oauth2/
Dreauth.py79 request, supported_challenge_types, access_token, requested_scopes=None argument
99 request, _REAUTH_API + ":start", body, access_token=access_token, use_json=True
104 request, session_id, challenge_id, client_input, access_token argument
131 access_token=access_token,
136 def _run_next_challenge(msg, request, access_token): argument
180 access_token,
185 def _obtain_rapt(request, access_token, requested_scopes): argument
203 access_token,
226 msg = _run_next_challenge(msg, request, access_token)
257 access_token, _, _, _ = _client.refresh_grant(
[all …]
D_reauth_async.py47 request, supported_challenge_types, access_token, requested_scopes=None argument
70 access_token=access_token,
76 request, session_id, challenge_id, client_input, access_token argument
103 access_token=access_token,
108 async def _run_next_challenge(msg, request, access_token): argument
152 access_token,
157 async def _obtain_rapt(request, access_token, requested_scopes): argument
175 access_token,
199 msg = await _run_next_challenge(msg, request, access_token)
230 access_token, _, _, _ = await _client_async.refresh_grant(
[all …]
D_client.py82 request, token_uri, body, access_token=None, use_json=False argument
108 if access_token:
109 headers["Authorization"] = "Bearer {}".format(access_token)
140 request, token_uri, body, access_token=None, use_json=False argument
162 request, token_uri, body, access_token=access_token, use_json=use_json
196 access_token = response_data["access_token"]
203 return access_token, expiry, response_data
265 access_token = response_data["access_token"]
273 return access_token, refresh_token, expiry, response_data
D_client_async.py39 request, token_uri, body, access_token=None, use_json=False argument
65 if access_token:
66 headers["Authorization"] = "Bearer {}".format(access_token)
105 request, token_uri, body, access_token=None, use_json=False argument
127 request, token_uri, body, access_token=access_token, use_json=use_json
161 access_token = response_data["access_token"]
168 return access_token, expiry, response_data
D_service_account_async.py72 access_token, expiry, _ = await _client_async.jwt_grant(
75 self.token = access_token
128 access_token, expiry, _ = await _client_async.id_token_jwt_grant(
131 self.token = access_token
D_credentials_async.py65 access_token,
81 self.token = access_token
/external/python/oauth2client/tests/contrib/
Dtest_multiprocess_file_storage.py51 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 …]
Dtest_devshell.py57 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)
Dtest_multistore_file.py94 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 …]
Dtest_dictionary_storage.py73 self.assertEqual(returned.access_token, credentials.access_token)
89 self.assertEqual(returned.access_token, credentials.access_token)
Dtest_appengine.py160 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 …]
Dtest_sqlalchemy.py46 access_token='token',
61 self.assertEqual(result.access_token, self.credentials.access_token)
Dtest_keyring_storage.py123 access_token = 'foo'
131 access_token, client_id, client_secret,
157 self.assertEqual('foo', restored.access_token)
/external/grpc-grpc/src/python/grpcio/grpc/
D_auth.py31 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/utils/frozen_chromite/third_party/oauth2client/
Dclient.py483 def __init__(self, access_token, client_id, client_secret, refresh_token, argument
518 self.access_token = access_token
569 if not self.access_token:
651 headers['Authorization'] = 'Bearer ' + self.access_token
752 if not self.access_token or self.access_token_expired:
756 return AccessTokenInfo(access_token=self.access_token,
850 new_cred.access_token != self.access_token and
880 self.access_token = d['access_token']
918 self._do_revoke(http_request, self.refresh_token or self.access_token)
961 self._do_retrieve_scopes(http_request, self.access_token)
[all …]
/external/python/oauth2client/oauth2client/
Dclient.py470 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 …]
Dservice_account.py469 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/
Drun_gce_system_tests.py38 self.assertIsNone(credentials.access_token)
40 self.assertIsNotNone(credentials.access_token)
43 query_params = {'access_token': credentials.access_token}
/external/python/google-auth-library-python/system_tests/system_tests_async/
Dconftest.py67 async def _token_info(access_token=None, id_token=None): argument
70 if access_token is not None:
71 query_params["access_token"] = access_token
/external/python/oauth2client/oauth2client/contrib/
Ddevshell.py67 self.access_token = pbl[2] if pbl_len > 2 else None
122 self.access_token = self.devshell_response.access_token
/external/python/google-auth-library-python/system_tests/system_tests_sync/
Dconftest.py95 def _token_info(access_token=None, id_token=None): argument
98 if access_token is not None:
99 query_params["access_token"] = access_token
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc146 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()

1234