This article describes how to configure SAML SSO login for Wi-Fi SSID over a captive portal using FortiAuthenticator as the IdP.
FortiAuthenticator.
Configuration on the FortiAuthenticator:
Note:
Remote users can also be used in this configuration.
To create users on FortiAuthenticator, refer to:
Configuring local user on FortiAuthenticator
For this example, the following configuration is being used:
Navigate to Authentication -> SAML IdP -> General and enable SAML Identity Provider Portal
Navigate to Authentication -> SAML IdP -> Service Providers and select 'Create New'.
This information is available from the SP which in this case is the FortiGate on which the SSID is configured.
Note:
Get this information from Step 3 of Configuration on the FortiGate.
Configuration on the FortiGate:
The default ports of the Captive portal for HTTP and HTTPS are 1000 and 1003 respectively as used above. However, if the default ports need to be changed, then refer to the article: Technical Tip: Change the captive portal port
config user group
edit "SAML-FAC"
set member "SAML-FAC"
next
end
config firewall address
edit "FAC"
set subnet 192.168.100.100 255.255.255.255
next
end
Select the options as shown below:
Make sure to exempt the FQDN or IP address of the FortiAuthenticator.
Note:
Enable captive-portal-exempt in policy for SSID to FortiAuthenticator
config firewall policy
edit 1
set name "SAML-FAC_to_FortiAuth"
set srcintf "SAML-FAC"
set dstintf "Internal1"
set action accept
set srcaddr "all"
set dstaddr "FAC"
set schedule "always"
set service "ALL"
set nat enable
set captive-portal-exempt enable ß
next
end
edit 2
set name "SAML-FAC_to_Outside"
set srcintf "SAML-FAC"
set dstintf "wan1"
set action accept
set srcaddr "all"
set dstaddr "all"
set schedule "always"
set service "ALL"
set nat enable
next
end
Result:
Connect the client to the broadcasted SSID and authenticate as a local or remote user based on the above configuration.
Related documents:
Troubleshooting Tip: How to troubleshoot SAML authentication
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.