Skip to main content

Configure single sign-on for Microsoft Entra ID

Describes how to configure SSO with Microsoft Entra ID through OIDC or SAML. Covers app registration, claims, SAML metadata refresh, and testing.

F5 Workforce AI Security supports Security Assertion Markup Language (SAML) and OpenID Connect (OIDC) for single sign-on (SSO) with most identity providers. If your organization requires SAML, use SAML. Otherwise, use OIDC. For a general guide to all OIDC and SAML providers, see Configure single sign-on for all providers.

Configure OpenID Connect (OIDC)

Prerequisites

  • Admin rights in Microsoft Entra ID

  • Admin access to Organization in the Workforce AI Security admin interface

Output checklist

Save these values during the procedure:

  • Authorization Callback URL, from Workforce AI Security

  • Application (client) ID, from Entra

  • Directory (tenant) ID, from Entra

  • Client secret value, from Entra

Add the provider in Workforce AI Security

  1. In CONFIGURE, go to Organization > Identity.

  2. Select Add Provider.

  3. In Provider Name, enter a name. Include the company name and "SSO" in the name so that users recognize the provider as a company resource.

  4. From Provider Type, select OIDC.

  5. Select Save.

  6. Copy the Authorization Callback URL value. You enter it in Entra.

Register the application in Microsoft Entra ID

Note: If you can't find an icon or a name, use the search box at the top of the Azure portal.

  1. Log in to the Microsoft Azure portal.

  2. Select Microsoft Entra ID.

  3. Select App registrations.

  4. Select New registration.

  5. Enter Workforce AI Security SSO Integration, or another name.

  6. Select Default Directory only - Single tenant, or the option your organization needs.

  7. Set the Redirect URI platform to Web.

  8. In Redirect URI, enter the Authorization Callback URL from Workforce AI Security.

  9. Select Register.

  10. On the Overview page, in Essentials, copy these values:

    • Application (client) ID

    • Directory (tenant) ID

  11. Select Manage > Certificates & Secrets.

  12. Select New client secret.

    1. Select the Client Secrets tab.

    2. Enter a description.

    3. Enter the expiration date.

    4. Set a calendar reminder for 2 weeks before this date to renew the secret.

    5. Select Add.

  13. Copy the Value of the new secret.

    • This value is a password. Store it securely and don't share it.

  14. Select Token Configuration.

    1. Select Add optional claim.

    2. Set Token type to ID.

    3. Select email.

    4. Select Add.

    5. Select Turn on the Microsoft Graph email permissions. Claims don't appear in the token without this permission.

    6. Select Add.

    7. Select Add optional claim to add a display name claim.

    8. Set Token type to ID.

    9. Select name. The name claim provides the display name.

    10. Select Add.

  15. If name isn't available, configure the given_name and family_name claims instead:

    1. Select Add optional claim.

    2. Set Token type to ID.

    3. Select given_name.

    4. Select Add.

    5. Select Add optional claim.

    6. Set Token type to ID.

    7. Select family_name.

    8. Select Add.

Give users access to the application

In Entra, you can limit login to the users and groups that you assign to the application. Use these steps to choose who can log in.

  1. Log in to the Microsoft Azure portal.

  2. Select Microsoft Entra ID.

  3. Select Enterprise applications.

  4. Select the application with the name you entered when you registered it.

  5. Select Properties.

  6. Find Assignment required?, then do one of these:

    • For all users in the tenant, set Assignment required? to No, then select Save. Skip the remaining steps.

    • For specific users and groups only, keep Assignment required? set to Yes, then do the next steps.

  7. Select Users and groups.

  8. Select Add user/group.

  9. Select the users or groups.

  10. Select Select.

  11. Select Assign.

Keep these points in mind:

  • Group assignment needs Microsoft Entra ID P1 or P2.

  • Entra doesn't support nested groups. Only the direct members of an assigned group can log in.

  • When Assignment required? is Yes, a user who isn't assigned gets error AADSTS50105.

Finish the provider setup in Workforce AI Security

  1. In the Workforce AI Security admin interface, in CONFIGURE, go to Organization > Identity.

  2. Select the provider you added.

  3. In Client ID, enter the Application (client) ID.

  4. In Client Secret, enter the client secret value.

  5. Enter the Issuer (URL). Use your Directory (tenant) ID in this format:

    https://login.microsoftonline.com/<TENANT_ID>/v2.0
  6. Select Save.

  7. Turn on Enabled.

  8. Select Save.

Configure Security Assertion Markup Language (SAML)

Important: Until you finish the Entra configuration, don't enter the Entra metadata URL in Workforce AI Security. Until then, the Entra metadata has a placeholder signing certificate, and user logins fail. If you already saved the URL, follow the steps in the Refresh the metadata section.

Prerequisites

  • Admin rights in Microsoft Entra ID

  • Admin access to Organization in the Workforce AI Security admin interface

Create the Entra application

  1. Log in to the Microsoft Azure portal.

  2. Select Microsoft Entra ID.

  3. Select Enterprise applications.

  4. Select New application.

  5. Select Create your own application.

  6. Enter Workforce AI Security SSO Integration, or another name.

  7. Make sure that Integrate any other application is selected.

  8. Select Create.

  9. Select Set up single sign on. If you can't see it, select Manage > Single sign-on.

  10. Select SAML.

Keep this page open. Don't copy the metadata URL yet.

Add the provider in Workforce AI Security

  1. In CONFIGURE, go to Organization > Identity.

  2. Select Add Provider.

  3. In Provider Name, enter a name. Include the company name and "SSO" in the name so that users recognize the provider as a company resource.

  4. From Provider Type, select SAML.

  5. Select Save.

  6. Copy these values from the page for use in Entra:

    • Service Provider Entity ID

    • Authorization Callback URL

Finish the Entra configuration

  1. On the Entra SAML page, in Basic SAML Configuration, select Edit.

  2. Select Add identifier.

  3. Enter the Service Provider Entity ID.

  4. Select Add reply URL.

  5. Enter the Authorization Callback URL.

  6. Select Save.

  7. Close the window.

Configure attributes and claims

Workforce AI Security requires specific user attributes in the SAML assertion. Configure these attributes in Entra so users can log in.

  1. On the Entra SAML page, go to Attributes & Claims.

  2. Select Edit.

  3. Make sure that the email claim is configured. Entra includes it by default as user.mail or user.userprincipalname.

  4. Add a display name claim. Use one of these options:

    Recommended: add one claim named displayname or name, mapped to user.displayname.

    1. Select Add new claim.

    2. Set the name to displayname or name.

    3. Set the source attribute to user.displayname.

    4. Select Save.

    Alternative: add separate claims for the first name and the last name. Workforce AI Security combines them into a display name.

    1. Select Add new claim.

    2. Set the name to givenname.

    3. Set the source attribute to user.givenname.

    4. Select Save.

    5. Select Add new claim.

    6. Set the name to surname.

    7. Set the source attribute to user.surname.

    8. Select Save.

Give users access to the application

In Entra, you can limit login to the users and groups that you assign to the application. Use these steps to choose who can log in.

  1. Log in to the Microsoft Azure portal.

  2. Select Microsoft Entra ID.

  3. Select Enterprise applications.

  4. Select the application you created.

  5. Select Properties.

  6. Find Assignment required?, then do one of these:

    • For all users in the tenant, set Assignment required? to No, then select Save. Skip the remaining steps.

    • For specific users and groups only, keep Assignment required? set to Yes, then do the next steps.

  7. Select Users and groups.

  8. Select Add user/group.

  9. Select the users or groups.

  10. Select Select.

  11. Select Assign.

Keep these points in mind:

  • Group assignment needs Microsoft Entra ID P1 or P2.

  • Entra doesn't support nested groups. Only the direct members of an assigned group can log in.

  • When Assignment required? is Yes, a user who isn't assigned gets error AADSTS50105.

Load the metadata URL in Workforce AI Security

After you finish the Entra configuration and the attributes and claims, load the metadata URL:

  1. On the Entra SAML page, in SAML Certificates, copy the App Federation Metadata Url value.

  2. In the Workforce AI Security admin interface, in CONFIGURE, go to Organization > Identity.

  3. Select the provider you added.

  4. Select the Load from URL tab.

  5. In SAML URL, paste the App Federation Metadata Url.

  6. Select Save. Workforce AI Security takes a few seconds to validate the URL. If the URL isn't correct, an error shows.

Turn on the provider

  1. In CONFIGURE, go to Organization > Identity.

  2. Select the provider you added.

  3. Turn on Enabled.

  4. Select Save.

Test the configuration

Workforce AI Security doesn't support login flows that start at the identity provider. To test the SSO configuration, do these steps:

  1. If a username shows, select LOGOUT.

  2. Log in again.

Refresh the metadata

Workforce AI Security doesn't update the Entra metadata automatically. Refresh the metadata in these cases:

  • You load the metadata before you finish the Entra configuration, and user logins fail.

  • You renew or replace the SAML signing certificate in Entra.

To refresh the metadata, use the same metadata URL:

  1. In CONFIGURE, go to Organization > Identity.

  2. Select the SAML provider.

  3. Select the Load from URL tab.

  4. In SAML URL, enter the same App Federation Metadata Url again.

  5. Select Save.

Did this answer your question?