OdbDesignLib
OdbDesign ODB++ Parsing Library
RequestAuthenticationBase.h
1 #pragma once
2 
3 #include "../odbdesign_export.h"
4 #include "crow_win.h"
5 
6 namespace Odb::Lib::App
7 {
8  class ODBDESIGN_EXPORT RequestAuthenticationBase
9  {
10  public:
11  virtual crow::response AuthenticateRequest(const crow::request& req);
12 
13  protected:
14  RequestAuthenticationBase(bool disableAuthentication);
15 
16  // pure virtual interface
17  RequestAuthenticationBase() = default;
18 
19  bool m_disableAuthentication = false;
20 
21  };
22 }