Fortinet Document Library

Version:

Version:


Table of Contents

FortiAP Cloud User Guide

Download PDF
Copy Link

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 FortiAP network procedure.

A user connects to the Wi-Fi network and is redirected to https://<my_captive_portal_url>?grant_url=fortiapcloud_grant_url.

The user lands on the captive portal, who is then redirected by the captive portal to the <FortiAPCloud_grant_url>.

Check the AP network web URL in the address bar. This URL should be set to https://xxxx-<digit>.fortiapcloud.com.

  • The base URL of <FortiAPCloud_grant_url> without -<digit> can be https://xxxx.fortiapcloud.com
  • The full URL of <FortiAPCloud_grant_url> can be https://xxxx.fortiapcloud.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.getAttribute("grant_url") %>" method="POST">

<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>

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 FortiAP network procedure.

A user connects to the Wi-Fi network and is redirected to https://<my_captive_portal_url>?grant_url=fortiapcloud_grant_url.

The user lands on the captive portal, who is then redirected by the captive portal to the <FortiAPCloud_grant_url>.

Check the AP network web URL in the address bar. This URL should be set to https://xxxx-<digit>.fortiapcloud.com.

  • The base URL of <FortiAPCloud_grant_url> without -<digit> can be https://xxxx.fortiapcloud.com
  • The full URL of <FortiAPCloud_grant_url> can be https://xxxx.fortiapcloud.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.getAttribute("grant_url") %>" method="POST">

<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>