Authorization factory registration and base classes.
Definition in file auth_checker_factory.hpp.
Go to the source code of this file.
#include <stdexcept>#include <string>#include <string_view>#include <vector>#include <userver/components/component_context.hpp>#include <userver/server/handlers/auth/auth_checker_base.hpp>#include <userver/server/handlers/handler_config.hpp>#include <userver/utils/not_null.hpp>Classes | |
| class | server::handlers::auth::AuthCheckerFactoryBase |
| Base class for all the authorization factory checkers. More... | |
Namespaces | |
| namespace | server::handlers |
| Most common userver HTTP handlers. | |
Functions | |
| template<typename AuthCheckerFactory> | |
| void | server::handlers::auth::RegisterAuthCheckerFactory (std::string_view auth_type) |
| Function to call from main() to register an authorization checker. | |
| template<typename AuthCheckerFactory> | |
| void | server::handlers::auth::RegisterAuthCheckerFactory () |
| Registers an authorization checker using its kAuthType member. | |
| void server::handlers::auth::RegisterAuthCheckerFactory | ( | ) |
Registers an authorization checker using its kAuthType member.
| AuthCheckerFactory | additionally must have a static constexpr std::string_view kAuthType = "..." member. |
Definition at line 66 of file auth_checker_factory.hpp.
| void server::handlers::auth::RegisterAuthCheckerFactory | ( | std::string_view | auth_type | ) |
Function to call from main() to register an authorization checker.
| AuthCheckerFactory | must: 1) inherit from server::handlers::auth::AuthCheckerFactoryBase; 2) have a constructor from const components::ComponentContext&. |
| auth_type | Handler auth type to associate with the factory. |
Definition at line 55 of file auth_checker_factory.hpp.