New Contributor

Captive portal with Fortigate

I am trying to create a captive portal page where the users should accept the terms.


At the website of Fortigate I have found the following:


The web portal page is a script that gathers the user’s logon credentials and sends back to the FortiGate a POST message of the format https://<FGT_IP>:1000/fgtauth with data magic=session_id&username=<username>&password=<password>. (The magic value was provided in the initial FortiGate request to the web server.) The script used for this example is here.


I have seen that the initial redirect looks something like:


So the "magic" id is provided by the initial redirect from the fortigate.


I edited the footer HTML of the captive portal, there you can see that the values are provided as well

Screen Shot 2018-01-14 at 15.55.04.png


I trying to find a way to send the POST message after the acceptence of the terms.

So far, I have tried to following:


Screen Shot 2018-01-14 at 15.58.16.pngScreen Shot 2018-01-14 at 15.58.53.png


With no succes.


Does anybody have any iedeas how to populate the POST URL with the right attributes?

Contributor II

Re: Captive portal with Fortigate



have you taken a look at the following document?


Integration with 3rd Party Enforcement Points ClearPass & Fortinet utilizing RESTful API and RADIUS Accounting



Search Airheads
Showing results for 
Search instead for 
Did you mean: