24#include <unordered_map>
26#include "iceberg/catalog/rest/http_request.h"
27#include "iceberg/catalog/rest/iceberg_rest_export.h"
29#include "iceberg/result.h"
34namespace iceberg::rest::auth {
64 virtual Status
Close() {
return {}; }
74 static std::shared_ptr<AuthSession> MakeDefault(
75 std::unordered_map<std::string, std::string> headers);
94 static Result<std::shared_ptr<AuthSession>> MakeOAuth2(
96 const std::string& client_id,
const std::string& client_secret,
97 const std::string& scope,
bool keep_refreshed,
98 const std::unordered_map<std::string, std::string>& optional_oauth_params,
HTTP client for making requests to Iceberg REST Catalog API.
Definition http_client.h:71
An authentication session that can authenticate outgoing HTTP requests.
Definition auth_session.h:37
virtual Result< HttpRequest > Authenticate(HttpRequest request)=0
Authenticate an outgoing HTTP request.
virtual Status Close()
Close the session and release any resources.
Definition auth_session.h:64
An outgoing HTTP request. Mirrors Java's HttpRequest so signing implementations like SigV4 see method...
Definition http_request.h:86
Response from an OAuth2 token endpoint.
Definition types.h:300