Home
last modified time | relevance | path

Searched refs:call_creds (Results 1 – 25 of 54) sorted by relevance

123

/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/google_default/
Dgoogle_default_credentials.cc82 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
102 use_alts ? alts_creds_->create_security_connector(call_creds, target, in create_security_connector()
104 : ssl_creds_->create_security_connector(call_creds, target, args, in create_security_connector()
306 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds; in make_default_call_creds() local
312 err = create_default_creds_from_path(path_from_env, &call_creds); in make_default_call_creds()
314 if (err == GRPC_ERROR_NONE) return call_creds; in make_default_call_creds()
320 grpc_get_well_known_google_credentials_file_path(), &call_creds); in make_default_call_creds()
321 if (err == GRPC_ERROR_NONE) return call_creds; in make_default_call_creds()
327 call_creds = grpc_core::RefCountedPtr<grpc_call_credentials>( in make_default_call_creds()
329 if (call_creds == nullptr) { in make_default_call_creds()
[all …]
/external/grpc-grpc/src/core/lib/security/credentials/google_default/
Dgoogle_default_credentials.cc77 grpc_channel_credentials* creds, grpc_call_credentials* call_creds, in google_default_create_security_connector() argument
93 c->alts_creds, call_creds, target, args, sc, new_args) in google_default_create_security_connector()
95 c->ssl_creds, call_creds, target, args, sc, new_args); in google_default_create_security_connector()
181 grpc_call_credentials* call_creds = nullptr; in grpc_google_default_credentials_create() local
200 gpr_getenv(GRPC_GOOGLE_CREDENTIALS_ENV_VAR), &call_creds); in grpc_google_default_credentials_create()
206 grpc_get_well_known_google_credentials_file_path(), &call_creds); in grpc_google_default_credentials_create()
216 call_creds = grpc_google_compute_engine_credentials_create(nullptr); in grpc_google_default_credentials_create()
217 if (call_creds == nullptr) { in grpc_google_default_credentials_create()
227 if (call_creds != nullptr) { in grpc_google_default_credentials_create()
243 &creds->base, call_creds, nullptr); in grpc_google_default_credentials_create()
[all …]
/external/grpc-grpc/src/core/lib/security/credentials/composite/
Dcomposite_credentials.cc210 grpc_call_credentials_unref(c->call_creds); in composite_channel_destruct()
214 grpc_channel_credentials* creds, grpc_call_credentials* call_creds, in composite_channel_create_security_connector() argument
221 GPR_ASSERT(c->inner_creds != nullptr && c->call_creds != nullptr && in composite_channel_create_security_connector()
226 if (call_creds != nullptr) { in composite_channel_create_security_connector()
228 grpc_composite_call_credentials_create(c->call_creds, call_creds, in composite_channel_create_security_connector()
235 c->inner_creds, c->call_creds, target, args, sc, new_args); in composite_channel_create_security_connector()
253 grpc_channel_credentials* channel_creds, grpc_call_credentials* call_creds, in grpc_composite_channel_credentials_create() argument
257 GPR_ASSERT(channel_creds != nullptr && call_creds != nullptr && in grpc_composite_channel_credentials_create()
262 3, (channel_creds, call_creds, reserved)); in grpc_composite_channel_credentials_create()
267 c->call_creds = grpc_call_credentials_ref(call_creds); in grpc_composite_channel_credentials_create()
Dcomposite_credentials.h48 grpc_call_credentials* call_creds; member
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_implementations_test.py46 call_creds = implementations.google_call_credentials(creds)
47 self.assertIsInstance(call_creds, implementations.CallCredentials)
50 call_creds = implementations.access_token_call_credentials('token')
51 self.assertIsInstance(call_creds, implementations.CallCredentials)
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_auth_test.py48 call_creds = _auth.GoogleCallCredentials(MockGoogleCreds())
49 call_creds(None, mock_callback)
59 call_creds = _auth.GoogleCallCredentials(MockExceptionGoogleCreds())
60 call_creds(None, mock_callback)
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/composite/
Dcomposite_credentials.cc202 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
208 if (call_creds != nullptr) { in create_security_connector()
210 composite_call_credentials_create(call_creds_, std::move(call_creds)), in create_security_connector()
219 grpc_channel_credentials* channel_creds, grpc_call_credentials* call_creds, in grpc_composite_channel_credentials_create() argument
221 GPR_ASSERT(channel_creds != nullptr && call_creds != nullptr && in grpc_composite_channel_credentials_create()
226 3, (channel_creds, call_creds, reserved)); in grpc_composite_channel_credentials_create()
228 call_creds->Ref()); in grpc_composite_channel_credentials_create()
Dcomposite_credentials.h37 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds) in grpc_composite_channel_credentials() argument
40 call_creds_(std::move(call_creds)) {} in grpc_composite_channel_credentials()
51 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds,
62 const grpc_call_credentials* call_creds() const { return call_creds_.get(); } in call_creds() function
/external/grpc-grpc/test/cpp/util/
Dcli_credentials.cc55 call_creds, "",
199 std::shared_ptr<grpc::CallCredentials> call_creds = GetCallCredentials(); in GetCredentials() local
200 return (channel_creds == nullptr || call_creds == nullptr) in GetCredentials()
202 : grpc::CompositeChannelCredentials(channel_creds, call_creds); in GetCredentials()
/external/grpc-grpc/examples/ruby/pubsub/
Dpubsub_demo.rb58 call_creds = GRPC::Core::CallCredentials.new(auth_proc(opts))
59 combined_creds = ssl_creds.compose(call_creds)
69 call_creds = GRPC::Core::CallCredentials.new(auth_proc(opts))
70 combined_creds = ssl_creds.compose(call_creds)
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/insecure/
Dinsecure_credentials.cc36 RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
40 Ref(), std::move(call_creds)); in create_security_connector()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/xds/
Dxds_credentials.cc106 RefCountedPtr<grpc_call_credentials> call_creds, const char* target_name, in create_security_connector() argument
141 std::move(call_creds), target_name, temp_args, new_args); in create_security_connector()
145 std::move(call_creds), target_name, temp_args, new_args); in create_security_connector()
Dxds_credentials.h41 RefCountedPtr<grpc_call_credentials> call_creds, const char* target_name,
/external/grpc-grpc/include/grpcpp/security/
Dcredentials.h55 const std::shared_ptr<CallCredentials>& call_creds);
84 const std::shared_ptr<CallCredentials>& call_creds);
185 const std::shared_ptr<CallCredentials>& call_creds);
/external/grpc-grpc/src/ruby/pb/test/
Dclient.rb124 call_creds = GRPC::Core::CallCredentials.new(auth_creds.updater_proc)
125 creds = creds.compose call_creds
134 call_creds = GRPC::Core::CallCredentials.new(proc { |md| md.merge(kw) })
135 creds = creds.compose call_creds
140 call_creds = GRPC::Core::CallCredentials.new(auth_creds.updater_proc)
141 creds = creds.compose call_creds
360 call_creds = GRPC::Core::CallCredentials.new(update_metadata)
364 credentials: call_creds)
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/fake/
Dfake_credentials.cc46 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
50 this->Ref(), std::move(call_creds), target, args); in create_security_connector()
/external/grpc-grpc/test/core/security/
Dcredentials_test.cc420 grpc_channel_credentials* c, grpc_call_credentials* call_creds, in check_channel_oauth2_create_security_connector() argument
424 GPR_ASSERT(call_creds != nullptr); in check_channel_oauth2_create_security_connector()
425 GPR_ASSERT(strcmp(call_creds->type, GRPC_CALL_CREDENTIALS_TYPE_OAUTH2) == 0); in check_channel_oauth2_create_security_connector()
486 grpc_channel_credentials* c, grpc_call_credentials* call_creds, in check_channel_oauth2_google_iam_create_security_connector() argument
491 GPR_ASSERT(call_creds != nullptr); in check_channel_oauth2_google_iam_create_security_connector()
492 GPR_ASSERT(strcmp(call_creds->type, GRPC_CALL_CREDENTIALS_TYPE_COMPOSITE) == in check_channel_oauth2_google_iam_create_security_connector()
494 creds_array = grpc_composite_call_credentials_get_credentials(call_creds); in check_channel_oauth2_google_iam_create_security_connector()
891 creds->call_creds); in test_google_default_creds_auth_key()
914 creds->call_creds); in test_google_default_creds_refresh_token()
951 GPR_ASSERT(creds->call_creds != nullptr); in test_google_default_creds_gce()
[all …]
/external/grpc-grpc/src/ruby/spec/
Dchannel_credentials_spec.rb60 call_creds = CallCredentials.new auth_proc
61 expect { channel_creds.compose call_creds }.not_to raise_error
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/alts/
Dalts_credentials.cc54 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
58 this->Ref(), std::move(call_creds), target_name); in create_security_connector()
/external/grpc-grpc/src/core/lib/security/credentials/fake/
Dfake_credentials.cc36 grpc_channel_credentials* c, grpc_call_credentials* call_creds, in fake_transport_security_create_security_connector() argument
40 grpc_fake_channel_security_connector_create(c, call_creds, target, args); in fake_transport_security_create_security_connector()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/tls/
Dtls_credentials.cc69 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
88 this->Ref(), options_, std::move(call_creds), target_name, in create_security_connector()
Dtls_credentials.h37 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds,
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/security/
Dcredentials.h77 const std::shared_ptr<CallCredentials>& call_creds);
140 const std::shared_ptr<CallCredentials>& call_creds);
240 const std::shared_ptr<CallCredentials>& call_creds);
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/security/
Dcredentials.h77 const std::shared_ptr<CallCredentials>& call_creds);
140 const std::shared_ptr<CallCredentials>& call_creds);
240 const std::shared_ptr<CallCredentials>& call_creds);
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Dcredentials_test.cc543 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
547 GPR_ASSERT(call_creds != nullptr); in create_security_connector()
548 GPR_ASSERT(strcmp(call_creds->type(), GRPC_CALL_CREDENTIALS_TYPE_OAUTH2) == in create_security_connector()
623 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
627 GPR_ASSERT(call_creds != nullptr); in create_security_connector()
629 strcmp(call_creds->type(), GRPC_CALL_CREDENTIALS_TYPE_COMPOSITE) == 0); in create_security_connector()
631 static_cast<const grpc_composite_call_credentials*>(call_creds.get()) in create_security_connector()
1474 creds->call_creds()); in test_google_default_creds_auth_key()
1498 creds->call_creds()); in test_google_default_creds_refresh_token()
1546 GPR_ASSERT(creds->call_creds() != nullptr); in test_google_default_creds_gce()
[all …]

123