StoreFront

Configure Microsoft Entra ID for SAML authentication

This article describes how to configure Microsoft Entra ID as a SAML identity provider for StoreFront.

For general SAML configuration information, see SAML authentication.

Prerequisites

  • Users must have a hybrid identity. The on-premises Active Directory UPN must be synchronized to Entra ID (either to the Entra ID UPN or the on-premises UPN attribute).
  • StoreFront must be accessible via HTTPS with a valid certificate.
  • You must have administrator access to your Entra ID tenant.

Create an enterprise application

  1. Sign in to the Microsoft Entra admin center.

  2. Navigate to Identity > Applications > Enterprise applications.

  3. Click New application.

  4. Click Create your own application.

  5. Enter a name such as Citrix StoreFront.

  6. Select Integrate any other application you don’t find in the gallery (Non-gallery).

  7. Click Create.

Configure enterprise application for SAML authentication

  1. In the enterprise application you created, navigate to Manage > Single sign-on.

  2. Select SAML as the single sign-on method.

  3. In the Basic SAML Configuration section, click Edit.

  4. Configure the following values:

    • Identifier (Entity ID): https://[storefront-host]/Citrix/[StoreName]Auth
    • Reply URL (Assertion Consumer Service URL): https://[storefront-host]/Citrix/[StoreName]Auth/SamlForms/AssertionConsumerService

    Replace [storefront-host] with your StoreFront server’s fully qualified domain name and [StoreName] with your store name (for example, Store).

    Tip

    To find the exact URLs for your store, see StoreFront SAML Endpoints.

  5. Click Save.

Configure attributes and claims

StoreFront requires the user’s Active Directory UPN in the SAML Name ID claim to look up the user.

If on-premises UPN matches Entra ID UPN

  1. In the Attributes & Claims section, click Edit.

  2. Click on the Unique User Identifier (Name ID) claim.

  3. If the Active Directory UPN is the same as the Entra ID UPN then confirm that the Source attribute is set to user.userprincipalname. If the Active Directory UPN is different to the Entra ID UPN then change the Source attribute to user.onpremisesuserprincipalname.

  4. Click Save.

If on-premises UPN differs from Entra ID UPN

When users have different UPNs in Active Directory and Entra ID, you must configure the Name ID to use the on-premises UPN.

  1. In the Attributes & Claims section, click Edit.

  2. Click on the Unique User Identifier (Name ID) claim.

  3. Change the Source attribute to user.onpremisesuserprincipalname.

  4. Click Save.

  5. Click Add new claim.

  6. Configure the claim with the following values:

    • Name: sso_upn
    • Source: Attribute
    • Source attribute: user.userprincipalname
  7. Click Save.

    Important

    The UPN sent in the Name ID claim must match the user’s UPN in Active Directory. StoreFront looks up this UPN in Active Directory to authenticate the user. The sso_upn claim allows you to specify the Entra UPN to use for SSO to entra joined VDAs.

Assign users

  1. Navigate to Manage > Users and groups.

  2. Click Add user/group.

  3. Select the users or groups that need access to StoreFront.

  4. Click Assign.

Configure StoreFront

You can configure StoreFront to use Entra ID as the identity provider using metadata exchange or manual configuration.

  1. In the Entra ID enterprise application, navigate to Manage > Single sign-on.

  2. In the SAML Certificates section, copy the App Federation Metadata Url.

  3. On the StoreFront server, open PowerShell as administrator and run:

    Get-Module "Citrix.StoreFront*" -ListAvailable | Import-Module
    
    $StoreVirtualPath = "/Citrix/Store"
    $store = Get-STFStoreService -VirtualPath $StoreVirtualPath
    $auth = Get-STFAuthenticationService -StoreService $store
    
    Update-STFSamlIdPFromMetadata -AuthenticationService $auth -Url "https://login.microsoftonline.com/[tenant-id]/federationmetadata/2007-06/federationmetadata.xml"
    <!--NeedCopy-->
    

    Replace [tenant-id] with your Entra ID tenant ID or use the App Federation Metadata Url you copied.

Option 2: Manual configuration

  1. In the Entra ID enterprise application, navigate to Manage > Single sign-on.

  2. Note the Login URL from the Set up section.

  3. Download the Certificate (Base64) from the SAML Certificates section.

  4. On the StoreFront server, import the certificate and configure the identity provider. See Configure Identity Provider.

Test the configuration

  1. Navigate to https://[storefront-host]/Citrix/[StoreName]Auth/SamlTest

  2. You are redirected to the Entra ID sign-in page. Sign in with a user account that:
    • Is assigned to the enterprise application
    • Has a hybrid identity with a UPN synchronized from Active Directory
  3. After successful authentication, you are redirected back to the test page showing the identity claims.

  4. Verify that the NameID claim contains the user’s Active Directory UPN.

Troubleshooting

Authentication fails with “User not found”

This error occurs when StoreFront cannot find the user in Active Directory. Verify that:

  • The user has a hybrid identity with their UPN synchronized from Active Directory to Entra ID.
  • The Name ID claim is configured correctly:
    • If on-premises UPN matches Entra ID UPN: Name ID should use user.userprincipalname
    • If on-premises UPN differs from Entra ID UPN: Name ID should use user.onpremisesuserprincipalname
  • The StoreFront server can communicate with the domain controllers.

Redirection loop

If users experience a redirection loop between StoreFront and Entra ID:

  • Verify that the Reply URL in Entra ID matches the Assertion Consumer Service URL exactly.
  • Check for conflicting authentication methods enabled on the store.
  • Review IIS logs on the StoreFront server for error details.

Certificate errors

If you see certificate validation errors:

  • Verify that the signing certificate from Entra ID is correctly imported into StoreFront.
  • Check that the certificate has not expired.
  • Ensure the certificate is trusted by the StoreFront server.
Configure Microsoft Entra ID for SAML authentication