Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Microsoft AD FS - SAML

Learn how to configure Microsoft AD FS as a SAML identity provider for secure single sign-on (SSO) with your application.

This guide walks you through configuring Single Sign-On (SSO) with Microsoft Active Directory Federation Services (AD FS) as your Identity Provider.

To successfully set up AD FS SAML integration, you’ll need:

  • Elevated access to your AD FS Management Console
  • Access to the Admin Portal of the application you’re integrating Microsoft AD FS with
  1. Choose Microsoft AD FS as your identity provider

    Setup SSO Connection dialog with ADFS selected as the identity provider

    Download Metadata XML file so that you can configure AD FS Server going forward

    Service Provider Details panel with the Download Metadata XML link highlighted

    • Launch Server Manager
    • Click ‘Tools’ in the top menu
    • Select ‘AD FS Management’
    • In the left navigation pane, expand ‘Trust Relationships’
    • Right-click ‘Relying Party Trusts’
    • Select ‘Add Relying Party Trust’
    • Click ‘Start’ to begin the configuration

    AD FS Management Console with the Add Relying Party Trust option selected

    • Select ‘Claims aware’ as the trust type
    • Choose ‘Import data about the relying party from a file’
    • Click ‘Next’ to proceed

    Select Data Source step in the Add Relying Party Trust Wizard with the metadata file import option selected

    Import the Metadata XML file that you downloaded earlier

    • Enter a descriptive name for your application (e.g., “ExampleApp”)
    • Click ‘Next’ to continue

    Set display name step in the AD FS relying party trust wizard

    • Select an appropriate access control policy
    • For purposes of this guide, select ‘Permit everyone’
    • Click ‘Next’ to proceed
    • Verify the following settings:
      • Monitoring configuration
      • Endpoints
      • Encryption settings
    • Click ‘Next’ to continue

    Review trust configuration screen in the AD FS wizard

    The wizard will complete with the ‘Configure claims issuance policy for this application’ option automatically selected

    Finish step of the Add Relying Party Trust Wizard with the claims issuance policy checkbox selected

  2. Navigate to ‘Relying Party Trusts’ and select recently created app. Then click on ‘Edit Claim Issuance Policy’ from right nav bar. Edit claim issuance policy option for the new relying party trust in AD FS

    Click ‘Add Rule’ to create a new claim rule Edit Claim Issuance Policy dialog with the Add Rule button highlighted

    Select ‘Send LDAP Attributes as Claims’ template Select Rule Template step with Send LDAP Attributes as Claims chosen

    • Enter a descriptive rule name (e.g., “Example App”)
    • Configure the following attribute mappings:
      • E-Mail-Addresses → E-Mail Address
      • Given-Name → Given Name
      • Surname → Surname
      • User-Principal-Name → Name ID
    • Click ‘Finish’ to complete the mapping

    Edit Rule dialog mapping LDAP attributes to outgoing claim types for email, given name, surname, and name ID

    • Navigate to Identity Provider Configuration in the Admin Portal
    • Select “Configure Manually”
    • The above endpoints are AD FS endpoints. You can find them listed in AD FS Console > Service > Endpoints > Tokens and Metadata sections. Enter these required details:
      • Microsoft AD FS Identifier: http://<your-adfs-server-domain>/adfs/services/trust
      • Login URL: http://<your-adfs-server-domain>/adfs/ls
      • Certificate:
        1. Access Federation Metadata URL
        2. Locate the text after the first X509Certificate tag
        3. Copy and paste this certificate into the “Certificate” field
    • Click “Update” to save the configuration

    Identity Provider Configuration form with manual entry fields for the IdP entity ID, SAML URL, and X.509 certificate

    • In the Admin Portal, click “Test Connection”
    • You will be redirected to the AD FS login page
    • Enter your AD FS credentials
    • Verify successful redirection back to the Admin Portal with the correct user attributes

    Test single sign-on step showing a successful connection and the received user attributes

    • Click on Enable Connection
    • This will let all your selected users login to the new application via your AD FS SSO

    Enable single sign-on step with the Enable Connection button