Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
cookie_auth.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "auth_strategy.h"
4 #include "middleware.h"
5 
13 class CookieAuth : public AuthStrategy {
14  std::string secret;
15  Middleware * middleware;
16 public:
25  CookieAuth(const char * secret, Middleware * cookie);
26 
35  bool checkHeadersToParse(Headers * headers) override;
36 
45  std::string getSerializedValue(Headers * headers) override;
46 
53  void serializeAndSetValueToResponse(std::string & value) override;
54 };
void serializeAndSetValueToResponse(std::string &value) override
std::string getSerializedValue(Headers *headers) override
Interface for auth strategy template.
Definition: auth_strategy.h:13
bool checkHeadersToParse(Headers *headers) override
CookieAuth(const char *secret, Middleware *cookie)
class wrapper for middleware
Definition: middleware.h:14
Concrete cookie strategy of AuthStrategy.
Definition: cookie_auth.h:13
wrapper class for http headers
Definition: headers.h:11