Azure AD SAML Authentication
This guide explains how to configure Microsoft Entra ID (Azure AD) as the Identity Provider (IdP) for SAML authentication in Akeyless.
Prerequisites
- A Microsoft Entra ID tenant with admin permissions.
- An Akeyless account.
Create a Microsoft Entra SAML Application
- In the Azure portal, go to Enterprise applications.
- Create a new non-gallery application.
- Open the application, then go to Single sign-on, and select SAML.
- In Basic SAML Configuration, set:
- Identifier (Entity ID): Use the SAML Metadata/Entity ID URL generated for your Akeyless SAML Authentication Method.
- Reply URL (Assertion Consumer Service URL): Use the SAML ACS URL generated for your Akeyless SAML Authentication Method.
- In Attributes & Claims, add a claim for
emailand, if needed, configure group claims for role association. - Copy the App Federation Metadata URL from the SAML configuration. You will use it in Akeyless.
- Assign the required users and groups to the enterprise application.
Note:Akeyless uses dedicated SAML endpoints per Authentication Method. Do not use hardcoded global endpoints. Always copy endpoint values from the specific Akeyless SAML Authentication Method you are configuring.
Create the SAML Authentication Method in Akeyless
You can create the method from the Console or CLI.
Akeyless Console
- In the Akeyless Console, go to Administration, then Users & Auth Methods.
- Select New.
- In Select Type, select SAML.
- Set Name, Metadata URL (the App Federation Metadata URL), and Unique Identifier (for example,
email). - Save the Authentication Method.
- Copy the dedicated SAML endpoint values shown for this Authentication Method, then confirm the same values are configured in Microsoft Entra:
- SAML ACS URL
- SAML Metadata/Entity ID URL
Akeyless CLI
akeyless auth-method create saml \
--name "<saml-name>" \
--idp-metadata-url "<app-federation-metadata-url>" \
--unique-identifier emailAssociate with Access Roles
After creating the method, associate it with one or more Access Roles so authenticated users can access the required resources.
- In the Akeyless Console, go to Administration, then Users & Auth Methods.
- Select the SAML Authentication Method.
- Add the relevant Access Roles.
- Save the changes.
Validate Authentication
- Open https://console.akeyless.io.
- Select SAML and provide the SAML Authentication Method Access ID.
- Complete sign-in through Microsoft Entra.
For CLI usage after setup:
akeyless configure \
--profile entra-saml \
--access-id <SAML Access ID> \
--access-type samlTroubleshooting
If authentication fails, check the following:
- The Microsoft Entra application uses the dedicated ACS URL and Entity ID from this specific Akeyless SAML Authentication Method.
- The configured Unique Identifier key exists in SAML claims.
- The user is assigned to the Microsoft Entra enterprise application.
- The App Federation Metadata URL is still valid and reachable.
Updated 5 days ago
