Registry-backed factory for AuthManager implementations.
More...
#include <auth_managers.h>
|
| 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.
|
| |
Registry-backed factory for AuthManager implementations.
◆ Load()
| Result< std::unique_ptr< AuthManager > > iceberg::rest::auth::AuthManagers::Load |
( |
std::string_view |
name, |
|
|
const std::unordered_map< std::string, std::string > & |
properties |
|
) |
| |
|
static |
Load a manager by consulting the "rest.auth.type" configuration.
- Parameters
-
| name | Name of the auth manager. |
| properties | Catalog properties used to determine auth type. |
- Returns
- Manager instance or an error if no factory matches.
◆ Register()
| void iceberg::rest::auth::AuthManagers::Register |
( |
std::string_view |
auth_type, |
|
|
AuthManagerFactory |
factory |
|
) |
| |
|
static |
Register or override the factory for a given auth type.
This method is not thread-safe. All registrations should be done during application startup before any concurrent access to Load().
- Parameters
-
| auth_type | Case-insensitive type identifier (e.g., "basic"). |
| factory | Factory function that produces the manager. |
The documentation for this class was generated from the following files:
- iceberg/catalog/rest/auth/auth_managers.h
- iceberg/catalog/rest/auth/auth_managers.cc