Created on
02-05-2025
12:42 AM
Edited on
07-20-2025
11:43 PM
By
Anthony_E
This article explains SAML authentication basics in an easily understood manner.
FortiGate, FortiProxy, FortiAuthenticator.
SAML (Security Assertion Markup Language) is an XML-based standard, developed to exchange authentication and authorization data between an Identity Provider (commonly abbreviated IdP) and a Service Provider (commonly abbreviated SP).
A Service Provider may for example be a VPN gateway, firewall, or web application requiring the user to be authenticated.
An Identity Provider is an authentication server; this may be FortiAuthenticator, Google, Entra ID, Okta, or similar.
A unique feature of SAML is that the user authenticates to the Identity Provider directly, and the user’s credentials do not pass through the service/application/gateway the user is authenticating. Authentication typically happens in a browser.
There are two authentication flows:
This article focuses on SP-initiated authentication.
SAML functions broadly as follows:
Note:
The Identity Provider needs to know which Service Provider redirected the user to ensure only valid requests from known Service Providers are handled.
Note:
The credentials are not sent via SAML itself but are entered into a website hosted by the Identity Provider. If the connecting client is not a browser (for example, FortiClient), then the client application will launch an inbuilt or external browser window to submit the credentials.
Note:
The cookie is stored in the browser and used if a Service Provider redirects to the Identity Provider again. Instead of having to authenticate again, the user (client application) presents the cookie, and the Identity Provider behaves the same as if authentication were successful. The cookie will usually have a valid duration of a few hours only.
Related documents:
Fortinet Cyberglossary: Security Assertion Markup Language (SAML)
FortiAuthenticator Documentation: SAML IdP
ipsec-vpn-saml-based-authentication
FortiGate Documentation: Configuring SAML SSO login for SSL VPN with Entra ID acting as SAML IdP
Troubleshooting Tip: How to troubleshoot SAML authentication
FortiGate Documentation: ZTNA proxy access with SAML authentication example
well explained in a fun way
"Great resource! Highly recommended for customers seeking a clear and concise explanation of the SAML authentication flow."
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 2025 Fortinet, Inc. All Rights Reserved.