Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
Interface for auth strategy template. More...
#include <auth_strategy.h>
Public Member Functions | |
virtual | ~AuthStrategy ()=default |
virtual std::string | getSerializedValue (Headers *headers)=0 |
virtual bool | checkHeadersToParse (Headers *headers)=0 |
virtual void | serializeAndSetValueToResponse (std::string &value)=0 |
Interface for auth strategy template.
This is abstract class for authentication strategies. You can create your own strategy, which inherits AuthStrategy class and implements all methods below. CookieAuth and JwtAuth are defined in this framework.
|
virtualdefault |
virtual destructor
|
pure virtual |
Check, if this strategy could be executed with such request headers
headers | current request headers |
Implemented in CookieAuth, and JwtAuth.
|
pure virtual |
Parse headers to get serialized user credentials
headers | current request headers |
Implemented in CookieAuth, and JwtAuth.
|
pure virtual |
Set to current response user credentials
value | serialized user |
Implemented in CookieAuth, and JwtAuth.