1#ifndef SENSESP_SRC_SENSESP_NET_HTTP_AUTHENTICATOR_H_
2#define SENSESP_SRC_SENSESP_NET_HTTP_AUTHENTICATOR_H_
6#include <esp_http_server.h>
8#include <mbedtls/base64.h>
48 unsigned long nonce_max_age = 900000)
86 String
extract_param(String param, String auth_str,
bool quoted =
true);
HTTP Authenticator base class.
virtual bool authenticate_request(httpd_req_t *req)=0
Authenticate an incoming request.
HTTP Digest Authenticator class.
std::list< NonceData > nonces_
int authenticate_digest(httpd_req_t *req)
int find_nonce(String nonce, int count)
Find a nonce in the list of nonces.
unsigned long nonce_max_age_
virtual bool authenticate_request(httpd_req_t *req) override
Authenticate an incoming request.
esp_err_t request_authentication(httpd_req_t *req, bool stale=false)
HTTPDigestAuthenticator(String username, String password, String realm, unsigned long nonce_max_age=900000)
String extract_param(String param, String auth_str, bool quoted=true)
String get_random_hex_string()