|
|
|
@ -74,7 +74,7 @@ static void process_oauth2_success(void *state, grpc_auth_context *ctx, |
|
|
|
|
grpc_process_auth_metadata_done_cb cb, |
|
|
|
|
void *user_data) { |
|
|
|
|
const grpc_metadata *oauth2 = |
|
|
|
|
find_metadata(md, md_count, "Authorization", oauth2_md); |
|
|
|
|
find_metadata(md, md_count, "authorization", oauth2_md); |
|
|
|
|
test_processor_state *s; |
|
|
|
|
|
|
|
|
|
GPR_ASSERT(state != NULL); |
|
|
|
@ -93,7 +93,7 @@ static void process_oauth2_failure(void *state, grpc_auth_context *ctx, |
|
|
|
|
grpc_process_auth_metadata_done_cb cb, |
|
|
|
|
void *user_data) { |
|
|
|
|
const grpc_metadata *oauth2 = |
|
|
|
|
find_metadata(md, md_count, "Authorization", oauth2_md); |
|
|
|
|
find_metadata(md, md_count, "authorization", oauth2_md); |
|
|
|
|
test_processor_state *s; |
|
|
|
|
GPR_ASSERT(state != NULL); |
|
|
|
|
s = (test_processor_state *)state; |
|
|
|
@ -154,7 +154,7 @@ static void chttp2_init_client_simple_ssl_with_oauth2_secure_fullstack( |
|
|
|
|
grpc_channel_credentials *ssl_creds = |
|
|
|
|
grpc_ssl_credentials_create(test_root_cert, NULL, NULL); |
|
|
|
|
grpc_call_credentials *oauth2_creds = |
|
|
|
|
grpc_md_only_test_credentials_create("Authorization", oauth2_md, 1); |
|
|
|
|
grpc_md_only_test_credentials_create("authorization", oauth2_md, 1); |
|
|
|
|
grpc_channel_credentials *ssl_oauth2_creds = |
|
|
|
|
grpc_composite_channel_credentials_create(ssl_creds, oauth2_creds, NULL); |
|
|
|
|
grpc_arg ssl_name_override = {GRPC_ARG_STRING, |
|
|
|
|