Home
last modified time | relevance | path

Searched refs:service_url (Results 1 – 25 of 33) sorted by relevance

12

/external/grpc-grpc/test/core/security/
Dcreate_jwt.cc31 void create_jwt(const char* json_key_file_path, const char* service_url, in create_jwt() argument
47 &key, service_url == nullptr ? GRPC_JWT_OAUTH2_AUDIENCE : service_url, in create_jwt()
62 const char* service_url = nullptr; in main() local
73 &service_url); in main()
82 if (service_url != nullptr) { in main()
88 } else if (service_url == nullptr) { in main()
94 create_jwt(json_key_file_path, service_url, scope); in main()
Dprint_google_default_creds_token.cc69 const char* service_url = "https://test.foo.google.com/Foo"; in main() local
75 "Service URL for the token request.", &service_url); in main()
78 context.service_url = service_url; in main()
Dcredentials_test.cc831 auth_md_ctx.service_url = other_test_service_url; in test_jwt_creds_success()
1009 GPR_ASSERT(strcmp(context.service_url, test_service_url) == 0); in plugin_get_metadata_success()
1034 GPR_ASSERT(strcmp(context.service_url, test_service_url) == 0); in plugin_get_metadata_failure()
1196 if (strcmp(auth_md_context.service_url, in test_auth_metadata_context()
1199 test_cases[i].desired_service_url, auth_md_context.service_url); in test_auth_metadata_context()
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Dcreate_jwt.cc31 void create_jwt(const char* json_key_file_path, const char* service_url, in create_jwt() argument
47 &key, service_url == nullptr ? GRPC_JWT_OAUTH2_AUDIENCE : service_url, in create_jwt()
62 const char* service_url = nullptr; in main() local
73 &service_url); in main()
82 if (service_url != nullptr) { in main()
88 } else if (service_url == nullptr) { in main()
94 create_jwt(json_key_file_path, service_url, scope); in main()
Dprint_google_default_creds_token.cc69 const char* service_url = "https://test.foo.google.com/Foo"; in main() local
75 "Service URL for the token request.", &service_url); in main()
78 context.service_url = service_url; in main()
Dcredentials_test.cc1398 auth_md_ctx.service_url = other_test_service_url; in test_jwt_creds_success()
1732 GPR_ASSERT(strcmp(context.service_url, test_service_url) == 0); in plugin_get_metadata_success()
1757 GPR_ASSERT(strcmp(context.service_url, test_service_url) == 0); in plugin_get_metadata_failure()
1965 if (strcmp(auth_md_context.service_url, in test_auth_metadata_context()
1968 test_cases[i].desired_service_url, auth_md_context.service_url); in test_auth_metadata_context()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/
Djwt_credentials.cc45 if (cached_.service_url != nullptr) { in reset_cache()
46 gpr_free(cached_.service_url); in reset_cache()
47 cached_.service_url = nullptr; in reset_cache()
70 if (cached_.service_url != nullptr && in get_request_metadata()
71 strcmp(cached_.service_url, context.service_url) == 0 && in get_request_metadata()
86 jwt = grpc_jwt_encode_and_sign(&key_, context.service_url, jwt_lifetime_, in get_request_metadata()
93 cached_.service_url = gpr_strdup(context.service_url); in get_request_metadata()
Djwt_credentials.h67 char* service_url = nullptr; member
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djwt_credentials.cc36 if (c->cached.service_url != nullptr) { in jwt_reset_cache()
37 gpr_free(c->cached.service_url); in jwt_reset_cache()
38 c->cached.service_url = nullptr; in jwt_reset_cache()
66 if (c->cached.service_url != nullptr && in jwt_get_request_metadata()
67 strcmp(c->cached.service_url, context.service_url) == 0 && in jwt_get_request_metadata()
82 jwt = grpc_jwt_encode_and_sign(&c->key, context.service_url, in jwt_get_request_metadata()
90 c->cached.service_url = gpr_strdup(context.service_url); in jwt_get_request_metadata()
Djwt_credentials.h35 char* service_url; member
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/transport/
Dclient_auth_filter.cc128 to->service_url = gpr_strdup(from->service_url); in grpc_auth_metadata_context_copy()
134 if (auth_md_context->service_url != nullptr) { in grpc_auth_metadata_context_reset()
135 gpr_free(const_cast<char*>(auth_md_context->service_url)); in grpc_auth_metadata_context_reset()
136 auth_md_context->service_url = nullptr; in grpc_auth_metadata_context_reset()
195 char* service_url = nullptr; in grpc_auth_metadata_context_build() local
215 gpr_asprintf(&service_url, "%s://%s%s", in grpc_auth_metadata_context_build()
217 auth_md_context->service_url = service_url; in grpc_auth_metadata_context_build()
/external/grpc-grpc/src/core/lib/security/transport/
Dclient_auth_filter.cc73 if (auth_md_context->service_url != nullptr) { in grpc_auth_metadata_context_reset()
74 gpr_free(const_cast<char*>(auth_md_context->service_url)); in grpc_auth_metadata_context_reset()
75 auth_md_context->service_url = nullptr; in grpc_auth_metadata_context_reset()
133 char* service_url = nullptr; in grpc_auth_metadata_context_build() local
153 gpr_asprintf(&service_url, "%s://%s%s", in grpc_auth_metadata_context_build()
155 auth_md_context->service_url = service_url; in grpc_auth_metadata_context_build()
/external/grpc-grpc/src/php/tests/unit_tests/
DCallCredentials2Test.php54 $this->assertTrue(is_string($context->service_url));
124 $this->assertTrue(is_string($context->service_url));
156 $this->assertTrue(is_string($context->service_url));
DCallCredentialsTest.php60 $this->assertTrue(is_string($context->service_url));
/external/grpc-grpc/src/python/grpcio/grpc/
D_plugin_wrapping.py73 def __call__(self, service_url, method_name, callback): argument
75 _common.decode(service_url), _common.decode(method_name))
D_auth.py58 'aud': context.service_url
/external/grpc-grpc/include/grpcpp/security/
Dcredentials.h216 grpc::string_ref service_url, grpc::string_ref method_name,
/external/grpc-grpc/include/grpc/
Dgrpc_security.h286 const char* service_url; member
/external/grpc-grpc/src/php/ext/grpc/
Dcall_credentials.c152 php_grpc_add_property_string(arg, "service_url", context.service_url, true); in plugin_get_metadata()
/external/grpc-grpc/src/ruby/ext/grpc/
Drb_call_credentials.c87 VALUE auth_uri = rb_str_new_cstr(params->context.service_url); in grpc_rb_call_credentials_callback_with_gil()
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/security/
Dcredentials.h268 grpc::string_ref service_url, grpc::string_ref method_name,
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/security/
Dcredentials.h268 grpc::string_ref service_url, grpc::string_ref method_name,
/external/rust/crates/grpcio-sys/grpc/include/grpc/
Dgrpc_security.h404 const char* service_url; member
/external/grpc-grpc/src/cpp/client/
Dsecure_credentials.cc255 Status status = plugin_->GetMetadata(context.service_url, context.method_name, in InvokePlugin()
/external/rust/crates/grpcio-sys/grpc/spm-core-include/grpc/
Dgrpc_security.h404 const char* service_url; member

12