userver: userver/server/handlers/auth/auth_checker_factory.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
auth_checker_factory.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Authorization factory registration and base classes.

Definition in file auth_checker_factory.hpp.

Go to the source code of this file.

#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 ()
 Function to call from main() to register an authorization checker.
 

Function Documentation

◆ RegisterAuthCheckerFactory()

template<typename AuthCheckerFactory>
void server::handlers::auth::RegisterAuthCheckerFactory ( )

Function to call from main() to register an authorization checker.

Template Parameters
AuthCheckerFactorymust: 1) inherit from server::handlers::auth::AuthCheckerFactoryBase; 2) have a constructor from const components::ComponentContext&; 3) have static constexpr std::string_view kAuthType = "..." member.
Examples
samples/postgres_auth/postgres_service.cpp.

Definition at line 52 of file auth_checker_factory.hpp.