26#include <unordered_map>
43 std::string_view name,
44 const std::unordered_map<std::string, std::string>& properties)>;
55 std::string_view name,
56 const std::unordered_map<std::string, std::string>& properties);
Authentication manager interface for REST catalog.
Registry-backed factory for AuthManager implementations.
Definition auth_managers.h:47
static Result< std::unique_ptr< AuthManager > > Load(std::string_view name, const std::unordered_map< std::string, std::string > &properties)
Load a manager by consulting the "rest.auth.type" configuration.
static void Register(std::string_view auth_type, AuthManagerFactory factory)
Register or override the factory for a given auth type.
Define symbol visibility macros for the REST catalog library.
REST catalog authentication APIs.
Definition auth_manager.h:34
std::function< Result< std::unique_ptr< AuthManager > >(std::string_view name, const std::unordered_map< std::string, std::string > &properties)> AuthManagerFactory
Function that creates an AuthManager from its name.
Definition auth_managers.h:44
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.