Home
last modified time | relevance | path

Searched refs:token_md (Results 1 – 6 of 6) sorted by relevance

/external/grpc-grpc/test/core/security/
Dcredentials_test.cc203 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_ok() local
208 &response, &token_md, &token_lifetime) == GRPC_CREDENTIALS_OK); in test_oauth2_token_fetcher_creds_parsing_ok()
210 GPR_ASSERT(grpc_slice_str_cmp(GRPC_MDKEY(token_md), "authorization") == 0); in test_oauth2_token_fetcher_creds_parsing_ok()
211 GPR_ASSERT(grpc_slice_str_cmp(GRPC_MDVALUE(token_md), in test_oauth2_token_fetcher_creds_parsing_ok()
214 GRPC_MDELEM_UNREF(token_md); in test_oauth2_token_fetcher_creds_parsing_ok()
220 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_bad_http_status() local
225 &response, &token_md, &token_lifetime) == in test_oauth2_token_fetcher_creds_parsing_bad_http_status()
232 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_empty_http_body() local
236 &response, &token_md, &token_lifetime) == in test_oauth2_token_fetcher_creds_parsing_empty_http_body()
243 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_invalid_json() local
[all …]
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc119 const grpc_http_response* response, grpc_mdelem* token_md, in grpc_oauth2_token_fetcher_credentials_parse_server_response() argument
188 if (!GRPC_MDISNULL(*token_md)) GRPC_MDELEM_UNREF(*token_md); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
189 *token_md = grpc_mdelem_from_slices( in grpc_oauth2_token_fetcher_credentials_parse_server_response()
196 if (status != GRPC_CREDENTIALS_OK && !GRPC_MDISNULL(*token_md)) { in grpc_oauth2_token_fetcher_credentials_parse_server_response()
197 GRPC_MDELEM_UNREF(*token_md); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
198 *token_md = GRPC_MDNULL; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
Doauth2_credentials.h103 const struct grpc_http_response* response, grpc_mdelem* token_md,
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc137 const grpc_http_response* response, grpc_mdelem* token_md, in grpc_oauth2_token_fetcher_credentials_parse_server_response() argument
206 if (!GRPC_MDISNULL(*token_md)) GRPC_MDELEM_UNREF(*token_md); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
207 *token_md = grpc_mdelem_from_slices( in grpc_oauth2_token_fetcher_credentials_parse_server_response()
215 if (status != GRPC_CREDENTIALS_OK && !GRPC_MDISNULL(*token_md)) { in grpc_oauth2_token_fetcher_credentials_parse_server_response()
216 GRPC_MDELEM_UNREF(*token_md); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
217 *token_md = GRPC_MDNULL; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
Doauth2_credentials.h161 const struct grpc_http_response* response, grpc_mdelem* token_md,
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Dcredentials_test.cc315 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_ok() local
320 &response, &token_md, &token_lifetime) == GRPC_CREDENTIALS_OK); in test_oauth2_token_fetcher_creds_parsing_ok()
322 GPR_ASSERT(grpc_slice_str_cmp(GRPC_MDKEY(token_md), "authorization") == 0); in test_oauth2_token_fetcher_creds_parsing_ok()
323 GPR_ASSERT(grpc_slice_str_cmp(GRPC_MDVALUE(token_md), in test_oauth2_token_fetcher_creds_parsing_ok()
326 GRPC_MDELEM_UNREF(token_md); in test_oauth2_token_fetcher_creds_parsing_ok()
332 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_bad_http_status() local
337 &response, &token_md, &token_lifetime) == in test_oauth2_token_fetcher_creds_parsing_bad_http_status()
344 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_empty_http_body() local
348 &response, &token_md, &token_lifetime) == in test_oauth2_token_fetcher_creds_parsing_empty_http_body()
355 grpc_mdelem token_md = GRPC_MDNULL; in test_oauth2_token_fetcher_creds_parsing_invalid_json() local
[all …]