userver: userver/server/handlers/auth/auth_checker_settings.hpp Source File
Loading...
Searching...
No Matches
auth_checker_settings.hpp
1#pragma once
2
3#include <optional>
4
5#include <userver/formats/json/value.hpp>
6
8
9USERVER_NAMESPACE_BEGIN
10
11namespace server::handlers::auth {
12
13class AuthCheckerSettings final {
14public:
15 explicit AuthCheckerSettings(const formats::json::Value& doc);
16
17 const std::optional<ApiKeysMap>& GetApiKeysMap() const { return apikeys_map_; }
18
19private:
20 void ParseApikeys(const formats::json::Value& apikeys_map);
21
22 std::optional<ApiKeysMap> apikeys_map_;
23};
24
25} // namespace server::handlers::auth
26
27USERVER_NAMESPACE_END