Skip to content

Set up single sign-on with Okta

Available on Gold

These steps let your people sign in to Acadenix with their Okta account. You work in two places: Acadenix gives Okta two addresses, and Okta gives Acadenix its metadata address.

Before you start

  • Your organization needs its own Gold licence.
  • In Okta you need an administrator role that can create applications, such as Super Administrator or Application Administrator.
  • People sign in to the Acadenix account that has the same email address. Someone without one gets a learner account the first time they sign in, if their address is at your organization’s Email registration domains. That’s Allow learner JIT provisioning, on unless you switch it off.

In Acadenix: create the connection

  1. Choose Settings, then the Authentication tab.

  2. Under Identity provider connections, choose Add identity provider. Enter a Connection name, such as “Okta”. People see it on the sign-in button. Choose Create SAML connection.

  3. Open the connection and keep its Entity ID and ACS URL at hand.

    Settings → Authentication, the Okta connection under Identity provider connections, with its Entity ID and ACS URL

Replacing an earlier Okta setup? Open the existing connection and choose Create configuration update instead. Its Entity ID and ACS URL stay the same, and the old setup keeps working until you activate the new one.

In Okta: create the application

  1. In the Okta Admin Console, choose Applications, then Applications, then Create App Integration. On the Classic experience tab, choose SAML 2.0 and Next.

    Okta Admin Console, Applications → Applications → Create App Integration, the Classic experience tab with SAML 2.0 chosen and the Next button

  2. Under General Settings, name it (for example “Acadenix”) and choose Next.

  3. Under Configure SAML:

    • Single sign-on URL: the ACS URL from Acadenix. Leave Use this for Recipient URL and Destination URL ticked.
    • Audience URI (SP Entity ID): the Entity ID from Acadenix.
    • Leave Default RelayState empty.
    • Name ID format: EmailAddress. Application username: Email.
    • Under Show Advanced Settings, leave Response and Assertion Signature as Signed and Assertion Encryption as Unencrypted.

    Okta Admin Console, Configure SAML, with Single sign-on URL and Audience URI (SP Entity ID) filled in from Acadenix, Name ID format EmailAddress and Application username Email

  4. Choose Next. Answer the feedback question as an Okta customer adding an internal app, and choose Finish.

  5. Okta adds attribute statements once the application exists. On its Sign On tab, under Attribute statements, choose Add expression for each of these four:

    Name Expression
    email user.profile.email
    first_name user.profile.firstName
    last_name user.profile.lastName
    user_id user.id

    user_id is Okta’s own ID for the person, which never changes, even when their email address does.

    Okta Admin Console, the Acadenix application's Sign On tab, Attribute statements with email, first_name, last_name and user_id and their expressions

  6. On the same tab, copy the Metadata URL.

    Okta Admin Console, the Acadenix application's Sign On tab, with the Metadata URL and its Copy button

  7. On the Assignments tab, choose Assign, then Assign to People or Assign to Groups, and choose Assign beside the people or groups who will sign in to Acadenix, yourself included. Okta refuses anyone who isn’t assigned.

    Okta Admin Console, the Acadenix application's Assignments tab, the Assign Acadenix to Groups dialog with Assign beside the Everyone group

In Acadenix: finish and switch on

  1. Open the connection and choose Configure SAML (or your configuration update):

    • Configuration method: choose Fetch IdP metadata URL. The form opens on Manual configuration, whose three fields you don’t need when you fetch.
    • Public HTTPS metadata URL: Okta’s Metadata URL.
    • Under Attribute mapping, change Stable subject to user_id. Leave Verified email claim as email, First name claim as first_name and Last name claim as last_name.
    • Leave Accept encrypted assertions unticked. Choose Save draft.

    Settings → Authentication, Configure SAML with Configuration method set to Fetch IdP metadata URL, the Public HTTPS metadata URL filled in, Stable subject set to user_id under Attribute mapping, and Save draft

  2. Choose Test configuration and sign in at Okta with an assigned account. When the test passes, choose Activate configuration.

  3. Under Sign-in methods, switch the connection on. If it’s your only SAML connection, your sign-in page now takes people straight to Okta. Emailed codes and Google, LinkedIn or Microsoft, where they’re on, are the fallback: someone Okta turns away, or who goes back, sees the sign-in page with every choice. Select the connection under Sign-in methods to show it as a button instead (Display Sign On with SAML button on login screen), to switch off Allow learner JIT provisioning, or to limit the email domains it accepts.

The first time someone signs in with Okta, Acadenix emails a code to their account’s address to confirm the link. This happens once per person. People can also start from the Acadenix tile on their Okta dashboard.

If the fetch is refused

Choose Paste IdP metadata instead. Open Okta’s Metadata URL in your browser, copy everything it shows, and paste it. Or choose Manual configuration and copy the values from View SAML setup instructions on the Sign On tab:

  • IdP entity ID: Identity Provider Issuer.
  • IdP SSO URL: Identity Provider Single Sign-On URL.
  • IdP signing certificate(s): X.509 Certificate, including the BEGIN CERTIFICATE and END CERTIFICATE lines.

If the test fails

What you see What to change
Configure the IdP NameID format as Persistent Stable subject is still NameID. Enter user_id (step 11).
Verify the Stable subject mapping returns exactly one non-empty immutable value The user_id statement is missing or misspelt in Okta (step 8).
Verify the IdP sends the configured email claim The result lists the attribute names Okta sent. Match the names in step 8 exactly, in lower case.
Okta says you aren’t assigned to the application Assign the person or one of their groups (step 10).
Save draft says Please fill out this field Configuration method is still Manual configuration. Choose Fetch IdP metadata URL (step 11).

If this didn’t help

Ask Nix to log a support ticket, or open Support under Need help?.