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