Configuring SAML Single Sign-On for Okta

ManageEngine Key Manager Plus integrates seamlessly with Okta to provide robust and secure Single Sign-On (SSO) capabilities. Organizations can centralize user authentication and streamline access management by configuring Key Manager Plus as a Service Provider (SP) and Okta as an Identity Provider (IdP). This integration involves supplying details about the SP to the IdP and vice versa, and enhances security by leveraging Okta's advanced authentication mechanisms. It simplifies the user experience by allowing users to log in once via Okta and gain access to Key Manager Plus without re-authentication. This document covers the following topics in detail:

Follow these steps to seamlessly integrate Key Manager Plus with Okta, enabling a smooth and secure SSO experience.

1. Prerequisites

To configure Key Manager Plus as an SP on the Okta dashboard, you need the SP details from the Key Manager Plus SSO configuration page. Navigate to Settings >> User Management >> SSO. Under Service Provider Details, copy the Entity ID and Assertion Consumer URL. You can also download the SP certificate file (spcert.cer) or the SP metadata file (metadata.xml) from this page to use while configuring Key Manager Plus as an SP on the Okta dashboard.

2. Adding Key Manager Plus as an Application on the Okta Dashboard

Follow these steps to add Key Manager Plus as an application on the Okta dashboard and configure the SAML settings.

  1. Log in to the Okta Admin Console with administrator credentials.
  2. Select Applications from the left pane and click the Create App Integration button on the Applications page.
    okta-saml-sso-1
  3. In the Create a new app integration window that opens, select SAML 2.0 and click Next. You will see the Create SAML Integration page.
    okta-saml-sso-2

On the Create SAML Integration page, complete the following configurations: General Settings and Configure SAML.

2.1 General Settings

On the Create SAML Integration page, under General Settings, provide essential information about the application you are adding. Follow these steps:

  1. Enter a name of your choice in the App name field. This name will serve as a unique identifier for Key Manager Plus on the Okta dashboard.
    okta-saml-sso-3
  2. If you wish to upload a logo for the application, click the Upload new icon beside the App logo field, click Browse files, choose an image from your machine, and click Apply.
  3. Enable the App visibility checkbox if you do not wish to display the application icon to users.
  4. Click Next to continue to the next step.

2.2 Configure SAML

On the Configure SAML window, under SAML Settings, enter the following details.

  1. Single sign-on URL - Enter Key Manager Plus's Assertion Consumer Service (ACS) URL in this field. Tick the Use this for Recipient URL and Destination URL checkbox.
  2. Audience URI (SP Entity ID) - Enter Key Manager Plus's Entity ID in this field.
  3. Default RelayState - Leave this field blank.
  4. Name ID format - Select Unspecified from the drop-down field.
    okta-saml-sso-4
  5. Application username - Select None from the given options.
  6. Click the Show Advanced Settings button to reveal advanced SAML properties.
  7. Response - Choose Signed or Unsigned from the drop-down field. If you choose Signed, the IdP will sign the SAML responses sent to Key Manager Plus.
  8. Assertion Signature - Choose Signed or Unsigned from the drop-down field. If you choose Signed, the IdP will sign the SAML assertions sent to Key Manager Plus.
  9. Signature Algorithm - Select the digital algorithm to sign the SAML assertion and response.
  10. Digest Algorithm - Select the digest algorithm to sign the SAML assertion and response.
  11. Assertion Encryption - Choose whether the SAML assertion sent by the IdP should be encrypted. If you choose Encrypted, select the appropriate Encryption Algorithm and Key Transport Algorithm from the respective drop-down fields.
  12. Signature Certificate - Upload the Key Manager Plus certificate in this field.
  13. Authentication context class - Select the desired authentication class from the drop-down field.

    Caution

    Ensure the Authentication Context Class selected during SAML SSO configuration is consistent across the IdP and the SP. Any mismatch in the selected options can result in authentication failures or unpredictable behavior.

  14. Honor Force Authentication - Select Yes if you wish to re-authenticate users when they access Key Manager Plus, even if they have an active session with Okta (IdP).

After configuring the SAML properties, specify the Attribute Statements. The attribute statement is a crucial part of the SAML assertions that provides information about the authenticated user. Key Manager Plus identifies the user by cross-referencing the attribute within the attribute statement with its username before granting access. As the usernames in Okta and Key Manager Plus could be different, you should specify the format. There are two possible scenarios:

  1. AD Users: If you have users imported from Active Directory in your Key Manager Plus environment, their username will be in the format Domain\Username (Email ID prefix). In Okta GUI, under Attribute Statements, specify the following details:
    • Name: Enter a name for the attribute statement (e.g., AD users).
    • Name Format: Choose Unspecified from the available options.
    • Value: toUpperCase(substringBefore(substringAfter(user.email, "@"), ".")) + "\" + substringBefore(user.email, "@")
  2. Non-AD Users: If you do not have an AD integration, enter the value as substringBefore(user.email, "@"), because in Okta, user profiling is done in the format username@domain.com, whereas in Key Manager Plus, usernames are depicted only as the Email ID prefix.

    Caution

    The name of the custom NameID attribute created on the Okta console should be entered in the NameID Attribute field under Configure Identity Provider Details while configuring Okta as a trusted IdP in Key Manager Plus.

After configuring the required parameters, click the Preview the SAML Assertion option to review a sample of the SAML assertion that will be sent by the IdP to Key Manager Plus. Then click Next to proceed. Complete the feedback questionnaire and click Finish to finalize the SP configuration and SAML parameters on the Okta dashboard.

3. Assigning Key Manager Plus Application to Okta Users

After setting up the newly added application integration, you should assign it to the users in your Okta directory.

  1. Access the Applications page from the left pane and click the Assign Users to App button.
    okta-saml-sso-8
  2. In the Assign Applications page, under the Assign Apps to People tab, select the Key Manager Plus application under the Applications section and select the desired users under the People section.
    okta-saml-sso-9
  3. After selecting the users, click Next to continue.
  4. In the Confirm Assignments tab, review the application and the assigned users.
    okta-saml-sso-10
  5. Click the Confirm Assignments button to assign the selected users to the Key Manager Plus application integration.

4. Configuring Okta as an IdP in Key Manager Plus

After configuring Key Manager Plus as an SP in Okta, you should configure Okta as an IdP in Key Manager Plus to establish it as a trusted entity. Navigate to Settings >> User Management >> SSO in Key Manager Plus and proceed with Configure Identity Provider Details. You can configure the IdP details either manually or by uploading the metadata file from Okta.

4.1 Manual Setup

If you choose to fill in the details manually, obtain the IdP details - Issuer ID, Login URL, and Logout URL from the Setup Instructions page in Okta. Enter these in the corresponding fields under Configure Identity Provider Details on the Key Manager Plus SSO configuration page. Also, download the Okta certificate from the Setup Instructions page and upload it to Key Manager Plus under Import IdP's Certificate.
okta-saml-sso-5
okta-saml-sso-6

4.2 Auto-Filling with IdP Metadata File

Follow these steps to download the Okta IdP details as a metadata.xml file and use it to automatically populate the corresponding fields in Key Manager Plus:

  1. Access the Key Manager Plus integration from the Applications page in Okta.
  2. Switch to the Sign On tab and click the View SAML setup instructions option.
  3. Scroll to the end of the setup instructions page and find the Optional field.
  4. Copy the metadata provided in this field and save it as an XML file (e.g., okta-metadata.xml).
  5. Upload this XML file under Configure Identity Provider Details on the Key Manager Plus SSO configuration page.

When using the metadata file, the IdP certificate is imported automatically. You do not need to upload it separately under Import IdP’s Certificate.
okta-saml-sso-7

5. Enabling SAML Single Sign-On

The final step in configuring SAML SSO is to enable SAML Single Sign-On for Key Manager Plus users. On the SAML Configuration page, click Enable under Enable / Disable SAML Single Sign-On to activate SAML SSO.

Once SSO is enabled, users assigned to the Key Manager Plus application in Okta can log in to Key Manager Plus using their Okta credentials via SAML SSO.




Top