userver: userver/server/handlers/auth/handler_auth_config.hpp Source File
Loading...
Searching...
No Matches
handler_auth_config.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/server/handlers/auth/handler_auth_config.hpp
4/// @brief @copybrief server::handlers::auth::HandlerAuthConfig
5
6#include <string>
7#include <vector>
8
9#include <userver/yaml_config/yaml_config.hpp>
10
11USERVER_NAMESPACE_BEGIN
12
13namespace server::handlers::auth {
14
15/// @brief Handler authentication configuration
16class HandlerAuthConfig final : public yaml_config::YamlConfig {
17public:
18 explicit HandlerAuthConfig(yaml_config::YamlConfig value);
19
20 const std::vector<std::string>& GetTypes() const { return types_; }
21
22private:
23 std::vector<std::string> types_;
24};
25
26HandlerAuthConfig Parse(const yaml_config::YamlConfig& value, formats::parse::To<HandlerAuthConfig>);
27
28} // namespace server::handlers::auth
29
30USERVER_NAMESPACE_END