mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-28 05:01:28 +03:00
Modified ESP8266WebServer (#6020)
-Expose HTTP Digest authentication with H1 hash as the argument -Preserved HTTP authentication with username/password arguments -Added a public static function for generating the H1 hash -Created an example of how to use this called HttpHashCredAuth.ino
This commit is contained in:
committed by
Earle F. Philhower, III
parent
147b5fbb98
commit
6191fbbd92
@ -82,6 +82,7 @@ public:
|
||||
void stop();
|
||||
|
||||
bool authenticate(const char * username, const char * password);
|
||||
bool authenticateDigest(const String& username, const String& H1);
|
||||
void requestAuthentication(HTTPAuthMethod mode = BASIC_AUTH, const char* realm = NULL, const String& authFailMsg = String("") );
|
||||
|
||||
typedef std::function<void(void)> THandlerFunction;
|
||||
@ -127,6 +128,8 @@ public:
|
||||
void sendContent_P(PGM_P content);
|
||||
void sendContent_P(PGM_P content, size_t size);
|
||||
|
||||
static String credentialHash(const String& username, const String& realm, const String& password);
|
||||
|
||||
static String urlDecode(const String& text);
|
||||
|
||||
template<typename T>
|
||||
|
Reference in New Issue
Block a user