Home
last modified time | relevance | path

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

12

/third_party/grpc/src/core/lib/security/credentials/google_default/
Dgoogle_default_credentials.cc84 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
104 use_alts ? alts_creds_->create_security_connector(call_creds, target, in create_security_connector()
106 : ssl_creds_->create_security_connector(call_creds, target, args, in create_security_connector()
308 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds; in make_default_call_creds() local
314 err = create_default_creds_from_path(path_from_env, &call_creds); in make_default_call_creds()
316 if (err == GRPC_ERROR_NONE) return call_creds; in make_default_call_creds()
322 grpc_get_well_known_google_credentials_file_path(), &call_creds); in make_default_call_creds()
323 if (err == GRPC_ERROR_NONE) return call_creds; in make_default_call_creds()
329 call_creds = grpc_core::RefCountedPtr<grpc_call_credentials>( in make_default_call_creds()
331 if (call_creds == nullptr) { in make_default_call_creds()
[all …]
Dgoogle_default_credentials.h57 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds,
/third_party/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)
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_auth_test.py49 call_creds = _auth.GoogleCallCredentials(MockGoogleCreds())
50 call_creds(None, mock_callback)
60 call_creds = _auth.GoogleCallCredentials(MockExceptionGoogleCreds())
61 call_creds(None, mock_callback)
/third_party/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
/third_party/grpc/test/cpp/util/
Dcli_credentials.cc59 call_creds, "",
213 std::shared_ptr<grpc::CallCredentials> call_creds = GetCallCredentials(); in GetCredentials() local
214 return (channel_creds == nullptr || call_creds == nullptr) in GetCredentials()
216 : grpc::CompositeChannelCredentials(channel_creds, call_creds); in GetCredentials()
/third_party/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)
/third_party/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()
/third_party/grpc/src/ruby/pb/test/
Dclient.rb127 call_creds = GRPC::Core::CallCredentials.new(auth_creds.updater_proc)
128 creds = creds.compose call_creds
137 call_creds = GRPC::Core::CallCredentials.new(proc { |md| md.merge(kw) })
138 creds = creds.compose call_creds
143 call_creds = GRPC::Core::CallCredentials.new(auth_creds.updater_proc)
144 creds = creds.compose call_creds
363 call_creds = GRPC::Core::CallCredentials.new(update_metadata)
367 credentials: call_creds)
/third_party/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()
/third_party/grpc/src/core/lib/security/credentials/xds/
Dxds_credentials.cc119 RefCountedPtr<grpc_call_credentials> call_creds, const char* target_name, in create_security_connector() argument
188 std::move(call_creds), target_name, temp_args.args, new_args); in create_security_connector()
193 std::move(call_creds), target_name, temp_args.args, new_args); in create_security_connector()
Dxds_credentials.h41 RefCountedPtr<grpc_call_credentials> call_creds, const char* target_name,
/third_party/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()
Dalts_credentials.h38 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds,
/third_party/grpc/src/ruby/spec/
Dchannel_credentials_spec.rb70 call_creds = CallCredentials.new auth_proc
71 expect { channel_creds.compose call_creds }.not_to raise_error
/third_party/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,
/third_party/grpc/test/core/security/
Dcredentials_test.cc444 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
448 GPR_ASSERT(call_creds != nullptr); in create_security_connector()
449 GPR_ASSERT(strcmp(call_creds->type(), GRPC_CALL_CREDENTIALS_TYPE_OAUTH2) == in create_security_connector()
524 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds, in create_security_connector() argument
528 GPR_ASSERT(call_creds != nullptr); in create_security_connector()
530 strcmp(call_creds->type(), GRPC_CALL_CREDENTIALS_TYPE_COMPOSITE) == 0); in create_security_connector()
532 static_cast<const grpc_composite_call_credentials*>(call_creds.get()) in create_security_connector()
1366 creds->call_creds()); in test_google_default_creds_auth_key()
1389 creds->call_creds()); in test_google_default_creds_refresh_token()
1442 GPR_ASSERT(creds->call_creds() != nullptr); in test_google_default_creds_gce()
[all …]
/third_party/grpc/include/grpcpp/security/
Dcredentials_impl.h72 const std::shared_ptr<CallCredentials>& call_creds);
123 const std::shared_ptr<CallCredentials>& call_creds);
223 const std::shared_ptr<CallCredentials>& call_creds);
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);
/third_party/grpc/src/python/grpcio_tests/tests/interop/
Dclient.py115 call_creds = grpc.metadata_call_credentials(
120 call_creds)
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dcredentials.pyx.pxi421 def __cinit__(self, CallCredentials call_creds): argument
423 self._call_creds = call_creds.c()
432 def channel_credentials_compute_engine(call_creds): argument
433 return ComputeEngineChannelCredentials(call_creds)
/third_party/grpc/src/core/lib/security/credentials/ssl/
Dssl_credentials.h37 grpc_core::RefCountedPtr<grpc_call_credentials> call_creds,
/third_party/grpc/test/core/end2end/
Dend2end_tests.cc40 extern void call_creds(grpc_end2end_test_config config);
286 call_creds(config); in grpc_end2end_tests()
382 call_creds(config); in grpc_end2end_tests()

12