url_external_account_credentials.h
Go to the documentation of this file.
1 //
2 // Copyright 2020 gRPC authors.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 #ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_EXTERNAL_URL_EXTERNAL_ACCOUNT_CREDENTIALS_H
18 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_EXTERNAL_URL_EXTERNAL_ACCOUNT_CREDENTIALS_H
19 
21 
22 #include <functional>
23 #include <map>
24 #include <string>
25 #include <vector>
26 
33 
34 namespace grpc_core {
35 
37  public:
39  Options options, std::vector<std::string> scopes,
41 
43  std::vector<std::string> scopes,
45 
46  private:
50 
53 
54  void FinishRetrieveSubjectToken(std::string subject_token,
56 
57  // Fields of credential source
60  std::map<std::string, std::string> headers_;
63 
67 };
68 
69 } // namespace grpc_core
70 
71 #endif // GRPC_CORE_LIB_SECURITY_CREDENTIALS_EXTERNAL_URL_EXTERNAL_ACCOUNT_CREDENTIALS_H
grpc_core::UrlExternalAccountCredentials::Create
static RefCountedPtr< UrlExternalAccountCredentials > Create(Options options, std::vector< std::string > scopes, grpc_error_handle *error)
Definition: url_external_account_credentials.cc:48
orphanable.h
grpc_core::UrlExternalAccountCredentials::FinishRetrieveSubjectToken
void FinishRetrieveSubjectToken(std::string subject_token, grpc_error_handle error)
Definition: url_external_account_credentials.cc:233
ctx
Definition: benchmark-async.c:30
grpc_core
Definition: call_metric_recorder.h:31
options
double_dict options[]
Definition: capstone_test.c:55
grpc_core::UrlExternalAccountCredentials
Definition: url_external_account_credentials.h:36
grpc_core::ExternalAccountCredentials::HTTPRequestContext
Definition: external_account_credentials.h:74
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
error
grpc_error_handle error
Definition: retry_filter.cc:499
grpc_core::URI
Definition: uri_parser.h:31
grpc_core::ExternalAccountCredentials
Definition: external_account_credentials.h:45
grpc_core::UrlExternalAccountCredentials::format_subject_token_field_name_
std::string format_subject_token_field_name_
Definition: url_external_account_credentials.h:62
external_account_credentials.h
grpc_core::RefCountedPtr
Definition: ref_counted_ptr.h:35
grpc_core::UrlExternalAccountCredentials::http_request_
OrphanablePtr< HttpRequest > http_request_
Definition: url_external_account_credentials.h:64
httpcli.h
grpc_core::UrlExternalAccountCredentials::OnRetrieveSubjectTokenInternal
void OnRetrieveSubjectTokenInternal(grpc_error_handle error)
Definition: url_external_account_credentials.cc:195
arg
Definition: cmdline.cc:40
grpc_core::UrlExternalAccountCredentials::OnRetrieveSubjectToken
static void OnRetrieveSubjectToken(void *arg, grpc_error_handle error)
Definition: url_external_account_credentials.cc:188
error.h
grpc_core::UrlExternalAccountCredentials::format_type_
std::string format_type_
Definition: url_external_account_credentials.h:61
grpc_core::UrlExternalAccountCredentials::url_
URI url_
Definition: url_external_account_credentials.h:58
grpc_core::UrlExternalAccountCredentials::ctx_
HTTPRequestContext * ctx_
Definition: url_external_account_credentials.h:65
grpc_core::UrlExternalAccountCredentials::UrlExternalAccountCredentials
UrlExternalAccountCredentials(Options options, std::vector< std::string > scopes, grpc_error_handle *error)
Definition: url_external_account_credentials.cc:60
grpc_core::UrlExternalAccountCredentials::headers_
std::map< std::string, std::string > headers_
Definition: url_external_account_credentials.h:60
grpc_core::OrphanablePtr
std::unique_ptr< T, Deleter > OrphanablePtr
Definition: orphanable.h:64
grpc_core::UrlExternalAccountCredentials::url_full_path_
std::string url_full_path_
Definition: url_external_account_credentials.h:59
ref_counted_ptr.h
grpc_core::UrlExternalAccountCredentials::cb_
std::function< void(std::string, grpc_error_handle)> cb_
Definition: url_external_account_credentials.h:66
uri_parser.h
grpc_error
Definition: error_internal.h:42
function
std::function< bool(GrpcTool *, int, const char **, const CliCredentials &, GrpcToolOutputCallback)> function
Definition: grpc_tool.cc:250
grpc_core::UrlExternalAccountCredentials::RetrieveSubjectToken
void RetrieveSubjectToken(HTTPRequestContext *ctx, const Options &options, std::function< void(std::string, grpc_error_handle)> cb) override
Definition: url_external_account_credentials.cc:134
cb
OPENSSL_EXPORT pem_password_cb * cb
Definition: pem.h:351
grpc_core::ExternalAccountCredentials::Options
Definition: external_account_credentials.h:49
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:48