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 {
14 public:
15 explicit AuthCheckerSettings(const formats::json::Value& doc);
16
17 const std::optional<ApiKeysMap>& GetApiKeysMap() const {
18 return apikeys_map_;
19 }
20
21 private:
22 void ParseApikeys(const formats::json::Value& apikeys_map);
23
24 std::optional<ApiKeysMap> apikeys_map_;
25};
26
27} // namespace server::handlers::auth
28
29USERVER_NAMESPACE_END