Home
last modified time | relevance | path

Searched full:access_token (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/external/python/oauth2client/tests/
Dtest_file.py64 access_token = 'foo'
72 access_token, client_id, client_secret,
112 self.assertEquals(data['access_token'], 'foo')
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}
[all …]
Dtest_service_account.py291 'access_token': token1,
296 'access_token': token2,
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,
[all …]
Dtest_client.py286 self.assertEqual(None, credentials.access_token)
876 access_token = 'foo'
883 access_token, client_id, client_secret,
900 token_response = {'access_token': '1/3w', 'expires_in': 3600}
924 token_response = {'access_token': '1/3w', 'expires_in': 3600}
964 valid_bool_value=True, token_attr='access_token')
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,
[all …]
/external/python/google-auth-library-python/google/oauth2/
D_reauth_async.py47 request, supported_challenge_types, access_token, requested_scopes=None argument
56 access_token (str): Access token with reauth scopes.
70 access_token=access_token,
76 request, session_id, challenge_id, client_input, access_token argument
87 access_token (str): Access token with reauth scopes.
103 access_token=access_token,
108 async def _run_next_challenge(msg, request, access_token): argument
118 access_token (str): reauth access token
152 access_token,
157 async def _obtain_rapt(request, access_token, requested_scopes): argument
[all …]
Dreauth.py79 request, supported_challenge_types, access_token, requested_scopes=None argument
88 access_token (str): Access token with reauth scopes.
99 request, _REAUTH_API + ":start", body, access_token=access_token, use_json=True
104 request, session_id, challenge_id, client_input, access_token argument
115 access_token (str): Access token with reauth scopes.
131 access_token=access_token,
136 def _run_next_challenge(msg, request, access_token): argument
146 access_token (str): reauth access token
180 access_token,
185 def _obtain_rapt(request, access_token, requested_scopes): argument
[all …]
D_client.py82 request, token_uri, body, access_token=None, use_json=False argument
93 access_token (Optional(str)): The access token needed to make the request.
108 if access_token:
109 headers["Authorization"] = "Bearer {}".format(access_token)
140 request, token_uri, body, access_token=None, use_json=False argument
150 access_token (Optional(str)): The access token needed to make the request.
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"]
[all …]
D_client_async.py39 request, token_uri, body, access_token=None, use_json=False argument
50 access_token (Optional(str)): The access token needed to make the request.
65 if access_token:
66 headers["Authorization"] = "Bearer {}".format(access_token)
105 request, token_uri, body, access_token=None, use_json=False argument
115 access_token (Optional(str)): The access token needed to make the request.
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
/external/python/oauth2client/tests/contrib/
Dtest_multiprocess_file_storage.py51 access_token = 'foo'
60 access_token, 'test-client-id', client_secret,
68 'access_token': new_token,
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')
[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_appengine.py82 'access_token': 'foo_access_token',
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,
374 content = json.dumps({'access_token': 'bar'})
388 access_token = 'foo'
395 access_token, client_id, client_secret,
[all …]
Dtest_dictionary_storage.py73 self.assertEqual(returned.access_token, credentials.access_token)
89 self.assertEqual(returned.access_token, credentials.access_token)
/external/python/oauth2client/oauth2client/
Dclient.py98 'AccessTokenInfo', ['access_token', 'expires_in'])
162 """Having only the access_token means no refresh is possible."""
218 """Forces a refresh of the access_token.
470 def __init__(self, access_token, client_id, client_secret, refresh_token, argument
480 access_token: string, access token.
484 token_expiry: datetime, when the access_token expires.
502 This is needed to store the latest access_token if it
505 self.access_token = access_token
554 """Forces a refresh of the access_token.
577 headers['Authorization'] = 'Bearer ' + self.access_token
[all …]
/external/autotest/utils/frozen_chromite/third_party/oauth2client/
Dclient.py106 'AccessTokenInfo', ['access_token', 'expires_in'])
152 """Having only the access_token means no refresh is possible."""
221 """Forces a refresh of the access_token.
483 def __init__(self, access_token, client_id, client_secret, refresh_token, argument
493 access_token: string, access token.
497 token_expiry: datetime, when the access_token expires.
515 This is needed to store the latest access_token if it
518 self.access_token = access_token
569 if not self.access_token:
571 'initial access_token')
[all …]
/external/grpc-grpc/test/cpp/util/
Dcli_credentials.cc35 access_token, "",
37 "Deprecated. Use --call_creds=access_token=<token>.");
56 "Call credentials to use: none (default), or access_token=<token>. If "
64 const char ACCESS_TOKEN_PREFIX[] = "access_token=";
103 "warning: --access_token is deprecated. Use " in GetDefaultCallCreds()
104 "--call_creds=access_token=<token>.\n"); in GetDefaultCallCreds()
105 return grpc::string("access_token=") + FLAGS_access_token; in GetDefaultCallCreds()
160 "or access_token=<token>.\n", in GetCallCredentials()
171 "warning: ignoring --access_token because --call_creds " in GetCredentials()
210 " --access_token ; Set the access token in metadata," in GetCredentialUsage()
[all …]
/external/python/google-auth-library-python/tests/oauth2/
Dtest_reauth.py68 access_token="token",
87 access_token="token",
108 access_token="token",
296 (True, {"access_token": "access_token"}),
309 "access_token",
312 {"access_token": "access_token"},
323 (True, {"access_token": "access_token"}),
Dtest__client.py113 access_token="access_token",
123 "Authorization": "Bearer access_token",
170 {"access_token": "token", "expires_in": 500, "extra": "data"}
241 "access_token": "token",
280 "access_token": "token",
/external/python/google-auth-library-python/tests/
Dtest_external_account.py123 "access_token": "ACCESS_TOKEN",
124 "issued_token_type": "urn:ietf:params:oauth:token-type:access_token",
604 "requested_token_type": "urn:ietf:params:oauth:token-type:access_token",
617 assert credentials.token == response["access_token"]
631 "requested_token_type": "urn:ietf:params:oauth:token-type:access_token",
649 assert credentials.token == response["access_token"]
666 "requested_token_type": "urn:ietf:params:oauth:token-type:access_token",
684 assert credentials.token == response["access_token"]
703 "requested_token_type": "urn:ietf:params:oauth:token-type:access_token",
721 assert credentials.token == response["access_token"]
[all …]
Dtest_downscoped.py51 REQUESTED_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token"
53 SUBJECT_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token"
55 "access_token": "ACCESS_TOKEN",
56 "issued_token_type": "urn:ietf:params:oauth:token-type:access_token",
539 assert credentials.token == response["access_token"]
580 assert credentials.token == response["access_token"]
622 "authorization": "Bearer {}".format(SUCCESS_RESPONSE["access_token"])
635 "authorization": "Bearer {}".format(SUCCESS_RESPONSE["access_token"]),
649 "authorization": "Bearer {}".format(SUCCESS_RESPONSE["access_token"]),
659 "authorization": "Bearer {}".format(SUCCESS_RESPONSE["access_token"]),
[all …]
/external/python/google-auth-library-python/tests_async/oauth2/
Dtest_reauth_async.py65 access_token="token",
85 access_token="token",
107 access_token="token",
315 (True, {"access_token": "access_token"}),
328 "access_token",
331 {"access_token": "access_token"},
343 (True, {"access_token": "access_token"}),
Dtest__client_async.py69 access_token = "access_token"
75 access_token=access_token,
85 "Authorization": "Bearer access_token",
135 {"access_token": "token", "expires_in": 500, "extra": "data"}
214 "access_token": "token",
254 "access_token": "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/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/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
162 if (strcmp(ptr->key, "access_token") == 0) { in grpc_oauth2_token_fetcher_credentials_parse_server_response()
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()
171 gpr_log(GPR_ERROR, "Missing or invalid access_token in JSON."); 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
520 "grpc_access_token_credentials_create(access_token=<redacted>, " in grpc_access_token_credentials_create()
528 gpr_asprintf(&token_md_value, "Bearer %s", access_token); in grpc_access_token_credentials_create()
/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

12345678910>>...22