Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_OAUTH2_OAUTH2_CREDENTIALS_H
20 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_OAUTH2_OAUTH2_CREDENTIALS_H
28 #include "absl/status/statusor.h"
29 #include "absl/types/optional.h"
55 #define GRPC_STS_POST_MINIMAL_BODY_FORMAT_STRING \
56 "grant_type=urn:ietf:params:oauth:grant-type:token-exchange&subject_token=%" \
57 "s&subject_token_type=%s"
73 const char* json_string);
99 std::atomic<bool>
done{
false};
static grpc_core::UniqueTypeName Type()
grpc_credentials_status grpc_oauth2_token_fetcher_credentials_parse_server_response(const struct grpc_http_response *response, absl::optional< grpc_core::Slice > *token_value, grpc_core::Duration *token_lifetime)
grpc_auth_refresh_token refresh_token_
grpc_auth_refresh_token grpc_auth_refresh_token_create_from_string(const char *json_string)
~grpc_google_refresh_token_credentials() override
grpc_access_token_credentials(const char *access_token)
int grpc_auth_refresh_token_is_valid(const grpc_auth_refresh_token *refresh_token)
Returns 1 if the object is valid, 0 otherwise.
void fetch_oauth2(grpc_credentials_metadata_request *req, grpc_polling_entity *pollent, grpc_iomgr_cb_func cb, grpc_core::Timestamp deadline) override
std::string debug_string() override
grpc_core::ArenaPromise< absl::StatusOr< grpc_core::ClientMetadataHandle > > GetRequestMetadata(grpc_core::ClientMetadataHandle initial_metadata, const GetRequestMetadataArgs *args) override
absl::StatusOr< URI > ValidateStsCredentialsOptions(const grpc_sts_credentials_options *options)
grpc_core::ArenaPromise< absl::StatusOr< grpc_core::ClientMetadataHandle > > GetRequestMetadata(grpc_core::ClientMetadataHandle initial_metadata, const GetRequestMetadataArgs *args) override
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
int cmp_impl(const grpc_call_credentials *other) const override
int cmp_impl(const grpc_call_credentials *other) const override
void on_http_response(grpc_credentials_metadata_request *r, grpc_error_handle error)
grpc_core::OrphanablePtr< grpc_core::HttpRequest > http_request_
grpc_google_refresh_token_credentials(grpc_auth_refresh_token refresh_token)
grpc_core::UniqueTypeName type() const override
std::string debug_string() override
gpr_timespec token_expiration_
grpc_core::RefCountedPtr< grpc_call_credentials > grpc_refresh_token_credentials_create_from_auth_refresh_token(grpc_auth_refresh_token token)
void grpc_auth_refresh_token_destruct(grpc_auth_refresh_token *refresh_token)
Destructs the object.
~grpc_oauth2_token_fetcher_credentials() override
void grpc_http_response_destroy(grpc_http_response *response)
grpc_polling_entity pollent_
grpc_oauth2_pending_get_request_metadata * pending_requests_
const grpc_auth_refresh_token & refresh_token() const
grpc_core::UniqueTypeName type() const override
absl::optional< grpc_core::Slice > access_token_value_
bool token_fetch_pending_
int QsortCompare(const T &a, const T &b)
const grpc_core::Slice access_token_value_
virtual void fetch_oauth2(grpc_credentials_metadata_request *req, grpc_polling_entity *pollent, grpc_iomgr_cb_func cb, grpc_core::Timestamp deadline)=0
std::unique_ptr< T, Deleter > OrphanablePtr
void(* grpc_iomgr_cb_func)(void *arg, grpc_error_handle error)
std::string debug_string() override
grpc_core::UniqueTypeName type() const override
grpc_closure http_post_cb_closure_
grpc_oauth2_token_fetcher_credentials()
grpc_auth_refresh_token grpc_auth_refresh_token_create_from_json(const grpc_core::Json &json)
OPENSSL_EXPORT pem_password_cb * cb
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:43