SAML
SAML authentication lets users sign in to Akeyless through an external Identity Provider (IdP), such as Okta, Ping Identity, or Microsoft Entra ID.
This page explains how to create and use a SAML Authentication Method in Akeyless for browser-based sign-in and single sign-on (SSO) flows.
Creating a SAML Authentication Method
This action is distinct from creating a new Akeyless account: it creates an additional SAML-based authentication method for an existing account.
Important SAML requirement:
- Dedicated endpoints per Authentication Method: Each SAML authentication method has dedicated SAML endpoints. When configuring the IdP application, use the metadata and assertion consumer service (ACS) endpoint values generated for that specific SAML authentication method.
Creating a SAML Authentication Method with the Console
To create a new SAML-based authentication method with the Console:
- In the Console, under Administration, navigate to Users & Auth Methods.
- Select New. This opens the authentication method creation wizard.
- In Select Type, select SAML, then select Next →.
- Enter a name for the Authentication Method in the Name field. Optionally, include a path using
/separators to place the Authentication Method in a virtual folder, then select Next →. - Configure general and SAML-specific fields, including Allowed Redirect URIs, Metadata URL or Metadata XML, and Unique Identifier.
- Select Finish.
Warning:The Unique Identifier must be a sub-claim key name, not a user value. For example, use
Creating a SAML Authentication Method with the CLI
To create a SAML-based authentication method with the CLI:
akeyless auth-method create saml \
--name <SAML Auth Method Name> \
--idp-metadata-url <IdP Metadata URL> \
--unique-identifier <email|username|UPN>To create the method by using XML metadata, use:
akeyless auth-method create saml \
--name <SAML Auth Method Name> \
--idp-metadata-xml-file-path <Path to IdP Metadata XML File> \
--unique-identifier <email|username|UPN>By default, Akeyless treats comma , as a delimiter for sub-claim values. If your IdP uses different delimiters, configure them with the delimiters flag.
Read about more parameters available when creating a SAML-based authentication method.
Using a SAML Authentication Method
Using a SAML Authentication Method with the Console
To sign in to the Console with SAML:
- Open the Akeyless Console: https://console.akeyless.io.
- In the Or continue with section, select SAML.
- Enter the SAML Authentication Method Access ID, then continue with the IdP sign-in flow.
Using a SAML Authentication Method with the CLI
To use a SAML-based authentication method with a CLI profile, run the Akeyless configure command:
akeyless configure \
--profile saml \
--access-id <SAML Access ID> \
--access-type samlTo authenticate and retrieve a temporary Akeyless token, run the Akeyless auth command:
akeyless auth \
--access-type saml \
--access-id <SAML Access ID>Associate with Access Roles
After creating the authentication method, associate it with one or more Access Roles so authenticated users can perform actions in Akeyless.
To associate with Access Roles in the Console:
- In the Console, under Administration, navigate to Users & Auth Methods.
- Select the SAML Authentication Method.
- Open the associated roles section, then add the required Access Roles.
- Save the changes.
For role configuration details, see Access Roles.
Update an Existing SAML Authentication Method
SAML authentication methods can require updates over time, for example when IdP metadata changes after certificate rotation.
To update in the Console:
- In the Console, under Administration, navigate to Users & Auth Methods.
- Select the SAML Authentication Method to update.
- Update the relevant fields, such as Metadata URL, Metadata XML, Allowed Redirect URIs, and Unique Identifier.
- Save the changes.
To update with the CLI:
akeyless auth-method update saml \
--name <Existing SAML Auth Method Name> \
--idp-metadata-url <Updated IdP Metadata URL> \
--unique-identifier <email|username|UPN>For all available update flags, see CLI Reference - Authentication.
Troubleshooting
If SAML sign-in fails, check the following:
- The SAML Authentication Method Access ID is correct.
- The IdP configuration uses the dedicated ACS and Entity ID values from the same SAML Authentication Method.
- Metadata URL or Metadata XML is current.
- Unique Identifier matches a key that exists in IdP assertions.
- Allowed Redirect URIs includes the redirect URI used by the client.
Optional Features
For optional features that apply across Authentication Methods, see Common Optional Features.
SAML-Specific Optional Features
- Allowed Redirect URIs: Restrict the redirect targets that can be used in the authentication flow.
- Unique Identifier: Define which IdP sub-claim key identifies a user.
- Sub-claim Delimiters: Configure custom delimiters if your IdP uses a format other than comma-separated values.
Related Pages
For end-to-end IdP setup examples, see:
Updated 3 days ago
Make sure to associate your new Authentication Method with an Access Role to grant the relevant permissions within Akeyless
