Creating the My Captive Portal page
This section includes details about creating the My Captive Portal page. The creation of this page is a prerequisite for the Adding a My Captive Portal SSID to a network procedure.
A user connects to the Wi-Fi network and is redirected to https://<my_captive_portal_url>?grant_url=fortilancloud_grant_url.
The user lands on the captive portal, who is then redirected by the captive portal to the <FortiLANCloud_grant_url>.
Check the AP network web URL in the address bar. This URL should be set to https://xxxx-<digit>.fortilan.forticloud.com.
- The base URL of <FortiLANCloud_grant_url> without -<digit> can be https://xxxx.fortilan.forticloud.com
- The full URL of <FortiLANCloud_grant_url> can be https://xxxx.fortilan.forticloud.com/APAuthentication/submit?type=external
If the SSID sign on method is Click Through, no parameters are submitted. For the other SSID sign on methods, the following parameters are submitted:
- User
- Password
- error_page_url
Sample jsp to paste in the captive portal
<form action="<%=request.getParameter("grant_url") %>" method="GET">
<input type="hidden" name="error_page_url" value="http://yourcompany.com/test/error.jsp"/>
<table>
<tr><td>Username:</td><td><input name="user" type="text"></td></tr>
<tr><td>Password:</td><td><input name="password" type="password"></td></tr>
<tr><td><input type="submit" value="Login"></td></tr>
</table>
</form>