[GH-ISSUE #1576] Question: Authentication on Portal #1346

Closed
opened 2026-02-28 01:29:41 +03:00 by kerem · 9 comments
Owner

Originally created by @Catta1997 on GitHub (Mar 24, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1576

Is possible to put an authentication to access to the config portal? I do not want that anyone can configure my ESP but at the same time I want the portal.

Or do not have portal on localIP, I mean:

  • ESP create own AP (ESP-WiFi with password) if my esp is connected to my home wifi I can access to portal also on localIP, how can I have portal only if I connect to the AP and not on localIP?
Originally created by @Catta1997 on GitHub (Mar 24, 2023). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1576 Is possible to put an authentication to access to the config portal? I do not want that anyone can configure my ESP but at the same time I want the portal. Or do not have portal on localIP, I mean: - ESP create own AP (ESP-WiFi with password) if my esp is connected to my home wifi I can access to portal also on localIP, how can I have portal only if I connect to the AP and not on localIP?
kerem closed this issue 2026-02-28 01:29:41 +03:00
Author
Owner

@Bighoneypot commented on GitHub (Mar 29, 2023):

Dear @Catta1997 you need to enable authenticate in your firmware.
Authenticate is present in WiFiManager.

// 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("") );

default is admin, 12345

<!-- gh-comment-id:1488274938 --> @Bighoneypot commented on GitHub (Mar 29, 2023): Dear @Catta1997 you need to enable authenticate in your firmware. Authenticate is present in WiFiManager. // 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("") ); default is admin, 12345
Author
Owner

@Catta1997 commented on GitHub (Mar 29, 2023):

Dear @Catta1997 you need to enable authenticate in your firmware. Authenticate is present in WiFiManager.

// 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("") );

default is admin, 12345

ohhhh, thanks a lot

<!-- gh-comment-id:1488300622 --> @Catta1997 commented on GitHub (Mar 29, 2023): > Dear @Catta1997 you need to enable authenticate in your firmware. Authenticate is present in WiFiManager. > > // 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("") ); > > default is admin, 12345 ohhhh, thanks a lot
Author
Owner

@Bighoneypot commented on GitHub (Mar 29, 2023):

@Catta1997 UP ;-)

<!-- gh-comment-id:1488314435 --> @Bighoneypot commented on GitHub (Mar 29, 2023): @Catta1997 UP ;-)
Author
Owner

@tablatronix commented on GitHub (Mar 29, 2023):

Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled.
It might be better to add plain http auth form

<!-- gh-comment-id:1488540539 --> @tablatronix commented on GitHub (Mar 29, 2023): Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled. It might be better to add plain http auth form
Author
Owner

@Catta1997 commented on GitHub (Mar 30, 2023):

HI

Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled.

it work form me if I visit 192.168.4.1 or local IP, what you mean with "not work with captive portals"?

It might be better to add plain http auth form

yeah but I do not know html so I do not know how to do a plain http auth .

<!-- gh-comment-id:1489823649 --> @Catta1997 commented on GitHub (Mar 30, 2023): HI > Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled. it work form me if I visit `192.168.4.1` or local IP, what you mean with "not work with captive portals"? > It might be better to add plain http auth form yeah but I do not know html so I do not know how to do a plain http auth .
Author
Owner

@Bighoneypot commented on GitHub (Mar 30, 2023):

HI

Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled.

it work form me if I visit 192.168.4.1 or local IP, what you mean with "not work with captive portals"?

It might be better to add plain http auth form

yeah but I do not know html so I do not know how to do a plain http auth .

Can you share picture and comment it? I need to understand

<!-- gh-comment-id:1489856972 --> @Bighoneypot commented on GitHub (Mar 30, 2023): > HI > > > Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled. > > it work form me if I visit `192.168.4.1` or local IP, what you mean with "not work with captive portals"? > > > It might be better to add plain http auth form > > yeah but I do not know html so I do not know how to do a plain http auth . Can you share picture and comment it? I need to understand
Author
Owner

@Catta1997 commented on GitHub (Mar 30, 2023):

HI

Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled.

it work form me if I visit 192.168.4.1 or local IP, what you mean with "not work with captive portals"?

It might be better to add plain http auth form

yeah but I do not know html so I do not know how to do a plain http auth .

Can you share picture and comment it? I need to understand

Picture of how auth pop up for me?

<!-- gh-comment-id:1489952759 --> @Catta1997 commented on GitHub (Mar 30, 2023): > > HI > > > Yeah I left that in to test, I think it does not work with captive portals hence why it is not enabled. > > > > > > it work form me if I visit `192.168.4.1` or local IP, what you mean with "not work with captive portals"? > > > It might be better to add plain http auth form > > > > > > yeah but I do not know html so I do not know how to do a plain http auth . > > Can you share picture and comment it? I need to understand Picture of how auth pop up for me?
Author
Owner

@tablatronix commented on GitHub (Mar 30, 2023):

Captive portal is the sandboxed webpage that automaticallty pops up

<!-- gh-comment-id:1490629020 --> @tablatronix commented on GitHub (Mar 30, 2023): Captive portal is the sandboxed webpage that automaticallty pops up
Author
Owner

@Catta1997 commented on GitHub (Mar 31, 2023):

Captive portal is the sandboxed webpage that automaticallty pops up

Ohh thanks, but it do what I need: it ask for an authentication. is un-safe the actual method?

<!-- gh-comment-id:1491329671 --> @Catta1997 commented on GitHub (Mar 31, 2023): > Captive portal is the sandboxed webpage that automaticallty pops up Ohh thanks, but it do what I need: it ask for an authentication. is un-safe the actual method?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1346
No description provided.