mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
24 lines
572 B
C++
24 lines
572 B
C++
#ifndef AuthenticationService_H_
|
|
#define AuthenticationService_H_
|
|
|
|
#include "Features.h"
|
|
#include "SecurityManager.h"
|
|
|
|
#include <ESPAsyncWebServer.h>
|
|
|
|
#define VERIFY_AUTHORIZATION_PATH "/rest/verifyAuthorization"
|
|
#define SIGN_IN_PATH "/rest/signIn"
|
|
|
|
class AuthenticationService {
|
|
public:
|
|
AuthenticationService(AsyncWebServer * server, SecurityManager * securityManager);
|
|
|
|
private:
|
|
SecurityManager * _securityManager;
|
|
|
|
void signIn(AsyncWebServerRequest * request, JsonVariant json);
|
|
void verifyAuthorization(AsyncWebServerRequest * request);
|
|
};
|
|
|
|
#endif
|