mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
22 lines
495 B
C++
22 lines
495 B
C++
#ifndef AuthenticationService_H_
|
|
#define AuthenticationService_H_
|
|
|
|
#include <Features.h>
|
|
#include <PsychicHttp.h>
|
|
#include <SecurityManager.h>
|
|
|
|
#define VERIFY_AUTHORIZATION_PATH "/rest/verifyAuthorization"
|
|
#define SIGN_IN_PATH "/rest/signIn"
|
|
|
|
class AuthenticationService {
|
|
public:
|
|
AuthenticationService(PsychicHttpServer * server, SecurityManager * securityManager);
|
|
void registerURI();
|
|
|
|
private:
|
|
SecurityManager * _securityManager;
|
|
PsychicHttpServer * _server;
|
|
};
|
|
|
|
#endif
|