FortiGate is configured as a SAML client ,i.e., SAML SP for FortiAuthenticator.
To complete the following configuration, you will need to configure the SAML settings on the ForiGate SP at the same time. This is because some fields including the SP entity ID, SP ACS (login) URL, and SP SLS (logout) URL are only available when configuring the SAML settings on the FortiGate SP.
- Go to Authentication > SAML IdP > Service Providers, and click Create New.
- Enter the following information:
- SP name: Enter a name for the FortiGate SP.
- IdP prefix: Select +, enter an IdP prefix in the Create Alternate IdP Prefix dialog or select Generate prefix, and click OK.
- Server certificate: Select the same certificate as the default IdP certificate used in Authentication > SAML IdP > General. See Configuring SAML IdP settings.
- In Application name for FTM push notification, enter OneLogin.
- Click Save.
In the SP Metadata pane, enter the following information:
- SP entity ID: Enter the SP entity ID from Creating SAML user and server.
- SP ACS (login) URL: Enter the SP single sign-on URL from Creating SAML user and server.
- SP SLS (logout) URL: Enter the SP single logout URL from Creating SAML user and server.
SP entity ID, SP ACS (login) URL, and SP SLS (logout) URL must match their respective configurations on the FortiGate SP side.
- Click OK.
- Select and click Edit to edit the recently created FortiGate SP.
- In Assertion Attribute Configuration:
- Select Subject NameID in Subject NameID.
- Select urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress in Format.
- In Assertion Attributes, select Add Assertion Attribute:
- Enter a name for the SAML attribute. Here, group.
- Select SAML assertion in the User attribute dropdown.
- Enter group in Custom field.
- Select Add Assertion Attribute again to create a new SAML attribute named email, and from the User attribute dropdown select SAML username.
SAML assertion attribute names and values must match values configured in Creating SAML user and server.
- Click OK to save changes.