πŸ“‹ SSO: Setting up SAML Single Sign-On with ADFS

In this guide, you will learn step-by-step how to configure SAML Single Sign-On (SSO) for your FTAPI instance using Microsoft ADFS (Active Directory Federation Services).

ADFS is a service provided by Microsoft as a standard role for Windows Server that enables web login using existing Active Directory credentials.

Requirements

For ADFS login to your FTAPI instance, you need:

  • An Active Directory instance with an email address attribute for each user.
  • A server running Microsoft Server 2016 to 2025.
  • An SSL certificate to sign your ADFS login page.

Information on installing the AD FS role service can be found at Microsoft: 
https://learn.microsoft.com/de-de/windows-server/identity/ad-fs/deployment/install-the-ad-fs-role-service

Adding a Relying Party Trust

  1. In AD FS Management, select the Relying Party Trusts folder and add a new Relying Party via the context menu (right-click) or the Actions sidebar. The configuration wizard for a new trust will start. 
  2. Select Claims aware and click Start
  3. If the AD FS server has direct internet access, select the first option and enter the URL of your FTAPI instance with the suffix /saml/metadata. You can also find the URL in the administration of your FTAPI server under Single Sign-On SAML 2.0 -> Relying Party (RP) Metadata URL
  4. If the AD FS server does not have direct internet access, download the aforementioned metadata and provide it under point 2 Import data about the relying party from a file. Click Next
  5. Enter a unique name. 
  6. Select Permit everyone or Permit a specific group and click <Parameter>. In the window that opens, you can now select dedicated AD groups whose members should have access to SSO via SAML. 
     
    Click Next twice and then Close to finish the wizard and save the configuration. 

Claim Issuance Policy

The Claim Issuance Policy opens automatically after closing; alternatively, right-click the newly created party and select Edit Claim Issuance Policy...

  1. Click Add Rule and select Send LDAP Attributes as Claims
     
    The claim rule name can be chosen freely, e.g., FTAPI - SSO. Active Directory must be selected as the attribute store. 
    The mapping should look like this: 
     
    If desired, further LDAP attributes can be configured (the FTAPI server also supports first name, last name, company, phone number, and position).

Group Mapping

If group mapping is to be used, please configure corresponding AD groups for the FTAPI groups. Under Add Rule..., select Send Group Membership as a Claim

  • Claim rule name: Free text, should correspond to the group
  • User's group: The local AD group
  • Outgoing claim type: Role or Group, depending on the configuration on the FTAPI server
  • Outgoing claim value: Name of the FTAPI group

 
The predefined FTAPI groups Administrator, Employee, and Guest have the internal designations GROUP_ADMIN, GROUP_EMPLOYEE, and GROUP_GUEST. For your own FTAPI groups, enter these under Outgoing claim value
Add all required groups and click Apply.

Adjusting the Token Lifetime

The validity period of the SAML authentication token is controlled via the Web SSO lifetime; the default value is 480 minutes. The value can be increased to a maximum of 9999 minutes (approx. one week).

Enable Message Signing (Encrypted Assertion)

For the Single Sign-On procedure via SAML to continue working for the FTAPI platform, the encrypted assertion must be active.

Related Articles

❓ SSO: Adjusting token lifetime on the ADFS server via PowerShell and console

❓ SAML IDP configuration for encrypted assertions