> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Single Sign-On (OpenID Connect)

> Let learners sign in to a class with their organization's account

## Introduction

With **Single Sign-On**, learners open a link, sign in with the account their organization already gives them, and land in their class in the LXP. There is no LXP password to hand out: the account is created on the first visit and the learner is enrolled in the class's courses.

It works with any identity provider that supports **OpenID Connect**, such as Microsoft Entra ID, Okta, Google Workspace, Auth0 or Keycloak.

> [!NOTE]
>
> Single Sign-On is a licensed feature. Praxis AI enables it for your organization and registers your identity provider with you. If you do not see **Single Sign-On** in the Composer menu, contact your Praxis AI representative.

## How it works

1. Praxis AI registers your organization's identity provider once, with the details you provide.
2. You create a **sign-in link** for each class, for example `https://learning.praxislxp.com/alai/go/cyber-spring-2027`.
3. A learner opens the link and signs in at your organization.
4. The LXP checks the answer, finds or creates the learner's account, enrolls the learner in the class's courses, and opens the class.

## Prerequisites

* [ ] An LXP **administrator** account for your organization
* [ ] Access to your identity provider's admin console, to register an application
* [ ] The e-mail domain or domains of your learners (for example `example.edu`)

***

## Set up

**1. Register the LXP at your identity provider**

In your identity provider, create a **web application** that uses **OpenID Connect** with the **authorization code** flow. Ask for the scopes `openid`, `email` and `profile`. Note these three values:

* the **issuer** address (for example `https://login.microsoftonline.com/<tenant-id>/v2.0` or `https://accounts.google.com`)
* the **client ID**
* the **client secret**

**2. Send the details to Praxis AI**

Give your Praxis AI representative the issuer address, the client ID, the client secret and your learners' e-mail domains. Praxis AI registers the identity provider and sends you the **redirect address**.

**3. Register the redirect address**

Add the redirect address to your application at the identity provider as an allowed redirect URI.

**4. Create a sign-in link for a class**

In **Composer**, open **Single Sign-On**. Under **Sign-in links**, click **Add Sign-in Link**. Choose a **link name** (lower-case letters, digits and hyphens), the identity provider and the class. Save, then copy the link and share it with your learners, or place it on your intranet or LMS.

## What learners see

A learner who opens the link is sent to your organization's sign-in page. After signing in, the learner arrives in the class. On later visits the same link signs them in again.

If the sign-in cannot be completed, the learner sees a short message that says why, for example that the link is not available or that the e-mail address is not in an allowed domain.

## Good to know

* **Learners only.** Single Sign-On signs learners in. Administrators, instructors and reporters keep signing in with their password; a sign-in link refuses their address.
* **Your organization's people only.** A link accepts addresses in the allowed domains that have no account with another organization on the LXP.
* **Deactivated accounts stay deactivated.** A learner you deactivated cannot come back through a link.
* **Accounts.** By default an account is created at the learner's first sign-in. Praxis AI can instead limit a provider to learners who already have an account.
* **Switching off.** Disable a link to close one class. To close every link of an identity provider, contact Praxis AI.

## Troubleshooting

| Message | What to check |
| - | - |
| This sign-in link is not available | The link is disabled, or the class was closed |
| Your sign-in took too long | The learner should open the link again, in one browser window |
| The sign-in service did not complete the request | The redirect address at your identity provider, the client ID and the client secret |
| The answer could not be verified | The issuer address: it must be exactly the one your identity provider publishes |
| Your organization did not confirm an e-mail address this link accepts | The learner's e-mail domain is not in the allowed domains: contact Praxis AI |
| No account was found for you | The provider accepts existing accounts only: create the learner's account first |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.