Update README.md

This commit is contained in:
Nasir Hafeez
2025-04-22 15:28:23 +05:00
committed by GitHub
parent 5590fca596
commit e54d8d16e5

View File

@@ -2,11 +2,11 @@
Captive portal flow: Captive portal flow:
Step 1: `/login`: from user device to captive portal. Portal responds with a token Step 1: `/login`: from user device to captive portal. Portal responds with a token. It can have the captive portal splash page.
Step 2: `/auth`: from AP to captive portal to verify token. Portal verifies it by responding with `Auth:1`. This happens on TCP port 80, even if the captive portal is using HTTPS on port 443. So port 80 needs to be open as well to respond to this request. Step 2: `/auth`: from AP to captive portal to verify token. Portal verifies it by responding with `Auth:1`. This happens on TCP port 80, even if the captive portal is using HTTPS on port 443. So port 80 needs to be open as well to respond to this request.
Step 3: `/portal`: from user device to captive portal Step 3: `/portal`: from user device to captive portal. It can have the captive portal final screen which user sees before authorization.
Apache access logs: Apache access logs:
@@ -16,4 +16,6 @@ Apache access logs:
154.192.47.15 - - [11/Feb/2025:06:50:02 +0000] "GET /portal/?gw_sn=G1RP6TP081524&gw_id=G1RP6TP081524&mac=a2:8f:4f:10:27:5c HTTP/1.1" 200 831 "http://connectivitycheck.gstatic.com/" "Mozilla/5.0 (Linux; Android 14; SM-A336E Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36" 154.192.47.15 - - [11/Feb/2025:06:50:02 +0000] "GET /portal/?gw_sn=G1RP6TP081524&gw_id=G1RP6TP081524&mac=a2:8f:4f:10:27:5c HTTP/1.1" 200 831 "http://connectivitycheck.gstatic.com/" "Mozilla/5.0 (Linux; Android 14; SM-A336E Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36"
``` ```
The AP periodically makes `/auth` request to register heartbeat with the portal server. The server can respond with an `Auth:0` whenever the user needs to be unauthorized.
[Reference Guide](https://cloud.ruijienetworks.com/help/#/ArticleList?id=4f324cfa2e3447e0a37d78a65e062239) [Reference Guide](https://cloud.ruijienetworks.com/help/#/ArticleList?id=4f324cfa2e3447e0a37d78a65e062239)