[GH-ISSUE #1513] Is there a way to make the WiFiManager work with the corporate WiFi networks? #1289

Open
opened 2026-02-28 01:29:26 +03:00 by kerem · 4 comments
Owner

Originally created by @ateker01 on GitHub (Oct 24, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1513

Sorry if already asked - I spent quite a bit of time but could not find any related.

Is there a way to make the WiFiManager work with the corporate WiFi networks?

For example in the hotels, when you need to connect to the WiFi; there is no password but a redirected page where you enter your room number and last name... etc
Similarly with the corporate network, you enter a userid and password instead of the WiFi's password.

Is there such functionally with the WiFi Manager?

Thanks

Originally created by @ateker01 on GitHub (Oct 24, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1513 Sorry if already asked - I spent quite a bit of time but could not find any related. Is there a way to make the WiFiManager work with the corporate WiFi networks? For example in the hotels, when you need to connect to the WiFi; there is no password but a redirected page where you enter your room number and last name... etc Similarly with the corporate network, you enter a userid and password instead of the WiFi's password. Is there such functionally with the WiFi Manager? Thanks
Author
Owner

@tablatronix commented on GitHub (Oct 24, 2022):

No, most are non standard captive portals

<!-- gh-comment-id:1289718378 --> @tablatronix commented on GitHub (Oct 24, 2022): No, most are non standard captive portals
Author
Owner

@mahboud commented on GitHub (Apr 1, 2023):

Here's an idea for getting around this issue. I don't know if it's possible.

After the ESP32 successfully gets on the WiFi, it should try to access a very simple webpage on the developer's site or any simple website. A good example is Apple's. That page would only return a single easy to check value, such as "success".

If when accessing that site, you get a "success", then the ESP32 is done.

If you get a network error, then the WiFi network is bad. You might have a WiFi network that isn't connected to the Internet, or other issues (but that is not the topic of this discussion).

If, however, you get an HTTP response back that contains HTML, then what would be cool is if the WiFiManager's web server either puts that HTML in a frame or replaces the contents of its main page, and basically becomes a relay for the web page that is being used to get further info from the user.

That way, the user sees whatever that challenge is, whether to enter an email or a hotel room number and a last name, or just pressing some "Connect" button. Hopefully the HTML could be kept in a state where the user's actions will go directly to the original webpage. Or the WifiManager can forward that input.

If this all happened over HTTPS, then this wouldn't work, but because of the nature of some of these pages, where they try to redirect you to their webpage, the simple ones are plain old HTTP and not HTTPS.

At this point I expect to hear "we've already thought of that and here's why it doesn't work!" I would think that this issue has been discussed countless times, given how these networks prevent us from deploying our projects on the huge number of free public networks that just have that one or two extra steps you need to go through to get a connection.

<!-- gh-comment-id:1492893976 --> @mahboud commented on GitHub (Apr 1, 2023): Here's an idea for getting around this issue. I don't know if it's possible. After the ESP32 successfully gets on the WiFi, it should try to access a very simple webpage on the developer's site or any simple website. A good example is [Apple's](http://captive.apple.com). That page would only return a single easy to check value, such as "success". If when accessing that site, you get a "success", then the ESP32 is done. If you get a network error, then the WiFi network is bad. You might have a WiFi network that isn't connected to the Internet, or other issues (but that is not the topic of this discussion). If, however, you get an HTTP response back that contains HTML, then what would be cool is if the WiFiManager's web server either puts that HTML in a frame or replaces the contents of its main page, and basically becomes a relay for the web page that is being used to get further info from the user. That way, the user sees whatever that challenge is, whether to enter an email or a hotel room number and a last name, or just pressing some "Connect" button. Hopefully the HTML could be kept in a state where the user's actions will go directly to the original webpage. Or the WifiManager can forward that input. If this all happened over HTTPS, then this wouldn't work, but because of the nature of some of these pages, where they try to redirect you to their webpage, the simple ones are plain old HTTP and not HTTPS. At this point I expect to hear "we've already thought of that and here's why it doesn't work!" I would think that this issue has been discussed countless times, given how these networks prevent us from deploying our projects on the huge number of free public networks that just have that one or two extra steps you need to go through to get a connection.
Author
Owner

@adamsstephen commented on GitHub (Apr 1, 2023):

I don't know why I get dragged in to this.

<!-- gh-comment-id:1492955932 --> @adamsstephen commented on GitHub (Apr 1, 2023): I don't know why I get dragged in to this.
Author
Owner

@mahboud commented on GitHub (Apr 5, 2023):

I don't know why I get dragged in to this.

Sorry @adamsstephen. You had suggested this: https://github.com/tzapu/WiFiManager/issues/481#issuecomment-485091696

<!-- gh-comment-id:1497010260 --> @mahboud commented on GitHub (Apr 5, 2023): > I don't know why I get dragged in to this. Sorry @adamsstephen. You had suggested this: https://github.com/tzapu/WiFiManager/issues/481#issuecomment-485091696
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#1289
No description provided.