[GH-ISSUE #1044] https portal #890

Open
opened 2026-02-28 01:27:31 +03:00 by kerem · 9 comments
Owner

Originally created by @Nimo11 on GitHub (May 2, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1044

Hello,

I will find it very useful to be able to use the portal in https and/ or authentication. I use the non-blocking portal and it would be more secure. Do you have it in your road map.

Thank you for this very useful work

Originally created by @Nimo11 on GitHub (May 2, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1044 Hello, I will find it very useful to be able to use the portal in https and/ or authentication. I use the non-blocking portal and it would be more secure. Do you have it in your road map. Thank you for this very useful work
Author
Owner

@tablatronix commented on GitHub (May 2, 2020):

Yes ideally you would provide your own websever and pas it into wm

<!-- gh-comment-id:622960303 --> @tablatronix commented on GitHub (May 2, 2020): Yes ideally you would provide your own websever and pas it into wm
Author
Owner

@Nimo11 commented on GitHub (May 5, 2020):

You could maybe change handleRequest to this :

void WiFiManager::handleRequest() {
  if (WiFiManager::AuthenticationRequired&&!server->authenticate(WiFiManager::AuthUser,WiFiManager::AuthPassword))
  {
    server->requestAuthentication(HTTPAuthMethod::DIGEST_AUTH);
  }
  _webPortalAccessed = millis();
}
<!-- gh-comment-id:624199726 --> @Nimo11 commented on GitHub (May 5, 2020): You could maybe change handleRequest to this : ``` void WiFiManager::handleRequest() { if (WiFiManager::AuthenticationRequired&&!server->authenticate(WiFiManager::AuthUser,WiFiManager::AuthPassword)) { server->requestAuthentication(HTTPAuthMethod::DIGEST_AUTH); } _webPortalAccessed = millis(); } ```
Author
Owner

@tablatronix commented on GitHub (May 5, 2020):

What’s that do? Basic auth? Does it require https server ?

<!-- gh-comment-id:624233057 --> @tablatronix commented on GitHub (May 5, 2020): What’s that do? Basic auth? Does it require https server ?
Author
Owner

@Nimo11 commented on GitHub (May 8, 2020):

It add authentication ability.

Changing handleRequest with this code and adding in header file this property :

bool AuthenticationRequired;
const char* AuthUser;
const char* AuthPassword;

So developers can decide to ask authentication simply.

Sorry for this too fast reply.

<!-- gh-comment-id:625940007 --> @Nimo11 commented on GitHub (May 8, 2020): It add authentication ability. Changing handleRequest with this code and adding in header file this property : bool AuthenticationRequired; const char* AuthUser; const char* AuthPassword; So developers can decide to ask authentication simply. Sorry for this too fast reply.
Author
Owner

@tablatronix commented on GitHub (May 8, 2020):

Does this work with captive portal ?

<!-- gh-comment-id:626029659 --> @tablatronix commented on GitHub (May 8, 2020): Does this work with captive portal ?
Author
Owner

@Nimo11 commented on GitHub (May 10, 2020):

Yes, all requests are processed. But the behavior can be modified by changing the value of AuthenticationRequired after the autoconnect

<!-- gh-comment-id:626291015 --> @Nimo11 commented on GitHub (May 10, 2020): Yes, all requests are processed. But the behavior can be modified by changing the value of AuthenticationRequired after the autoconnect
Author
Owner

@tablatronix commented on GitHub (Nov 23, 2020):

Ok this definitely does not work for captive portals. I am gonna try to add a landing page and see if that works.

It looks like it is not supported at all, even after landing, perhaps there is a header required.

<!-- gh-comment-id:732440491 --> @tablatronix commented on GitHub (Nov 23, 2020): Ok this definitely does not work for captive portals. I am gonna try to add a landing page and see if that works. It looks like it is not supported at all, even after landing, perhaps there is a header required.
Author
Owner

@Nimo11 commented on GitHub (Jan 10, 2021):

I try it this week and it work me with dev branch. I restart with acces point and i have login needed, After configuration i have a login page on my portal. What's wrong with your test?

<!-- gh-comment-id:757505991 --> @Nimo11 commented on GitHub (Jan 10, 2021): I try it this week and it work me with dev branch. I restart with acces point and i have login needed, After configuration i have a login page on my portal. What's wrong with your test?
Author
Owner

@tablatronix commented on GitHub (Jan 10, 2021):

Http authentication does not work on my devices. It never pops up

<!-- gh-comment-id:757543251 --> @tablatronix commented on GitHub (Jan 10, 2021): Http authentication does not work on my devices. It never pops up
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#890
No description provided.