Okta SAML Authentication
This guide explains how to configure Okta as the Identity Provider (IdP) for SAML authentication in Akeyless.
Prerequisites
- An Okta administrator account.
- An Akeyless account.
Create an Okta SAML Application
- In Okta, go to Applications, then create a new app integration of type SAML 2.0.
- Enter an application name and continue to SAML configuration.
- Configure the SAML app:
- Single sign-on URL: Use the SAML ACS URL generated for your Akeyless SAML Authentication Method.
- Audience URI (SP Entity ID): Use the SAML Metadata/Entity ID URL generated for your Akeyless SAML Authentication Method.
- Configure attribute mapping:
emailmapped touser.emailusermapped touser.login
- If you use group-based role association, add a group claim for
groups. - Save the 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.
Get Okta IdP Metadata
Get one of the following from Okta:
- IdP Metadata URL from the active signing certificate actions.
- IdP Metadata XML from the Okta SAML setup instructions.
You will use this metadata in Akeyless when creating the SAML Authentication Method.
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 or Metadata XML, 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 Okta:
- SAML ACS URL
- SAML Metadata/Entity ID URL
Akeyless CLI
akeyless auth-method create saml \
--name "my okta app" \
--idp-metadata-url "<okta-idp-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.
Authenticate with Okta SAML
Akeyless CLI
akeyless configure \
--profile okta-app \
--access-id <SAML Access ID> \
--access-type samlThen run commands with that profile, for example:
akeyless list-items --profile okta-appAkeyless Console
- Open https://console.akeyless.io.
- Select SAML.
- Enter the SAML Authentication Method Access ID.
- Complete sign-in in Okta.
Troubleshooting
If authentication fails, check the following:
- Okta assertion includes the claim key configured in Unique Identifier.
- Okta SAML app uses the dedicated ACS URL and Entity ID from this specific Akeyless SAML Authentication Method.
- The metadata source in Akeyless is valid and current.
- The user or group is assigned to the Okta application.
Updated 5 days ago
