Skip to main content
Hatibi
Staff & Editor
Staff & Editor
June 12, 2026

Technical Tip: Outbound firewall authentication using AWS IAM Identity Center as a SAML IdP

  • June 12, 2026
  • 0 replies
  • 130 views

 Description

This article describes how to configure and validate the FortiGate integration with AWS IAM Identity Center using SAML.

 Scope

FortiGate.

 Solution

In this scenario, user access to the internet is allowed only after successful SAML authentication to AWS IAM Identity Center. FortiGate acts as a SAML Service Provider (SP), and the IAM identity center is the SAML Identity Provider (IDP) where the user database is located.

0605f074.png


Operation flow:

  1. The user attempts to access any web page from the browser.

  2. FortiGate redirects the browser to the local captive portal for a short instant and then redirects again to the SAML IDP access portal.

  3. The user authenticates to the IAM identity center portal by username/password, and if enabled, will also be prompted to enter an MFA 6-digit code.

  4. IAM identity center IDP sends SAML assertions containing user information to the user's browser.

  5. The browser relays this information to FortiGate, which allows or denies access based on configured Firewall policies.


Configuration:

  1. Create a SAML application in AWS IAM Identity Center.


Go to IAM Identity Center -> Applications -> Add application.

  • In 'Setup Preference' select 'I have an application I want to setup'.

  • In 'Application type' select 'SAML 2.0'. This created a SAML 2.0 instance for identity federation. 

  • Select 'Next'


342e7567.png


  1. Configure SAML IDP and SAML SP settings.


Download the following from the IAM Identity Center:

  • SAML IDP metadata file.

  • IDP certificate.


e4e4c784.png


  1. Import the IDP certificate and configure SAML settings in FortiGate.


Go to System -> Certificates -> Create/Import -> Remote Certificate. Select the IDP certificate downloaded earlier.


Go to User & Authentication -> Single Sign-On and select 'Create New'. Configure SAML SP and SAML IDP settings.


f3e738e2.png


Use the following attributes to identify users and groups:

  • Attribute used to identify users = username.

  • Attribute used to identify groups = group.

  • Select 'OK' to complete the SAML configuration in FortiGate.


  1. Configure attribute mappings in the IAM Identity Center.


Go to the IAM Identity Center -> Applications -> Customer managed.

Select the application and then in the 'Actions' tab select 'Edit Attribute mappings'.

Apply the attributes for the username.


0ed3cb1e.png


  1. Configure a user group and Firewall policies in FortiGate.


CLI configuration to create a user group:


config user group
    edit "AWS_IAMgroup"
        set member "AWS_IDP_SAML"
    next
end


Create a firewall policy that allows the user to access the AWS access portal. Use the internet service 'Amazon-AWS' as a destination.


09836fb2.png


Configure a second firewall policy for user authentication.


dce71990.png


Validation:


When the user attempts to access any page on the web, the user will be prompted to log in. FortiGate will initially redirect to the local captive portal and then to the AWS access portal.

c7ecfcc6.png


If enabled in IAM Identity Center, the user will also be prompted for an MFA token. After successful authentication, it is possible to configure in FortiGate the successful authentication events and firewall user entry.


Go to Log & Report -> System Events -> User Events.


b6a65308.png


Go to Dashboard -> Assets & Identities -> Firewall users:


1cac6d3e.png


  • It is recommended to verify that the AWS IAM Identity Center SAML metadata is refreshed after policy changes, as outdated metadata can cause outbound authentication failures even when the SAML configuration appears correct.


Related documents: