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 {
13 public:
14 explicit HandlerAuthConfig(yaml_config::YamlConfig value);
15
16 const std::vector<std::string>& GetTypes() const { return types_; }
17
18 private:
19 std::vector<std::string> types_;
20};
21
22HandlerAuthConfig Parse(const yaml_config::YamlConfig& value,
23 formats::parse::To<HandlerAuthConfig>);
24
25} // namespace server::handlers::auth
26
27USERVER_NAMESPACE_END