Skip to main content
saleha
Staff & Editor
Staff & Editor
Aug 21, 2023 1:08 PM UTC

Technical Tip: Invalid HTTP Request while using sso login on FortiClient using Azure as the IDP server

  • Apr 24, 2026 3:24 PM UTC
  • 0 replies
  • 14058 views
  • Translate All
Description

This article describes the possible reasons for SSL VPN connection setup with SAML authentication and Azure as the Identity provider (IDP) redirecting to the error page 'invalid HTTP request'.

  • Solution
  • The issue can happen if the is a mismatch in IDP or SP URLs addresses between the FortiGate and Microsoft Azure Single Sign-On page. This can be verified by checking the following on a FortiGate CLI session and comapring it with the SAML SSO setting on Azure portal.

 

config user saml

    edit "azure"

        set entity-id ''

        set single-sign-on-url ''

        set single-logout-url ''

        set idp-entity-id ''

        set idp-single-sign-on-url ''

        set idp-single-logout-url ''

    next

end

 

  • Another possible issue is that there is no firewall policy created for the ssl.root. In the case of different VDOM, the interface name is ssl.<vdom name>. The source including the SAML group that contains the user saml 'azure' or the Azure remote group is missing from the SSL VPN authentication rules.

 

image.png

 

  • For details about configuring the SSL VPN connection with SAML authentication and Azure as the IDP server check the following links:

https://learn.microsoft.com/en-us/azure/active-directory/saas-apps/fortigate-ssl-vpn-tutorial

Configuring SAML SSO login for SSL VPN with Entra ID acting as SAML IdP

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024