24#include <unordered_map>
26#include "iceberg/catalog/rest/iceberg_rest_export.h"
29#include "iceberg/result.h"
34namespace iceberg::rest::auth {
36inline constexpr std::string_view kAuthorizationHeader =
"Authorization";
37inline constexpr std::string_view kBearerPrefix =
"Bearer ";
46ICEBERG_REST_EXPORT Result<OAuthTokenResponse> FetchToken(
47 HttpClient& client, AuthSession& session,
const AuthProperties& properties);
53ICEBERG_REST_EXPORT std::unordered_map<std::string, std::string> AuthHeaders(
54 const std::string& token);