HackerRank for Work supports single sign-on (SSO) using Okta as the identity provider. Okta lets users sign in once and access HackerRank without entering credentials again.

This article explains how to configure and enable SSO between HackerRank and Okta.

For more information about SSO, see 📄 Getting Started with Single Sign-On.

Note: HackerRank accepts only the user’s email address for SSO. During setup, define the SAML assertion to send the email address. SSO fails if HackerRank receives any value other than an email address.

Prerequisites

Before you begin, ensure you meet the following requirements:

Setting up HackerRank Single Sign-On with Okta

To set up HackerRank single sign-On with Okta:

Step 1: Copy the SSO unique ID from HackerRank

  1. Log in to your HackerRank for Work account using your credentials.

  2. Go to Settings > Company > Single Sign On.

  3. Copy the SSO unique ID under the Configure SSO section.

    image.png

    Note: You need this SSO unique ID in Step 2: Add HackerRank for Work app in Okta.

Step 2: Add HackerRank for Work app in Okta

  1. Log in to your Okta account using your credentials.

  2. Go to Admin Console > Applications > Applications.

    image.png
  3. Click Browse App Catalog.

  4. Search for HackerRank for Work and select it.

    image.png
  5. Click Add Integration.

    image.png
  6. In the General Settings tab:

    image.png
    1. Enter an Application label.

    2. (Optional) Select Do not display application icon to users to hide the app.

    3. Select Automatically log in when user lands on login page to enable auto-login.

    4. Click Next.

  7. In the Sign-On tab:

    1. Select SAML 2.0 under the Sign on methods section.

      image.png
    2. Scroll to Advanced Sign-on Settings.

    3. In the SSO unique ID field, paste the SSO unique ID you copied from HackerRank for Work in Step 1.

      image.png
  8. Click Done. Okta generates a Metadata URL.

  9. Copy the metadata URL from the Sign-On tab and open it in your browser to download the XML file.

    image.png

    Note: You need this XML file in Step 3: Upload metadata in HackerRank.

Step 3: Upload metadata in HackerRank

  1. Open your HackerRank for Work account.

  2. Go to Settings > Company > Single Sign On.

  3. Click Upload Metadata under the Configure SSO section.

    image.png
  4. Upload the XML file that you downloaded from Okta in Step 2.

After the upload completes, HackerRank displays the autogenerated metadata URL.

Step 4: Enable SSO

  1. Go to Settings > Company > Single Sign On.

  2. In the Enable SSO section, click Enable SSO.

    image.png

After you enable SSO:

Note: To disable SSO, click Disable SSO.

image.png