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

# Set up SAML single sign-on for Canvas LMS

> Connect Canvas LMS by Instructure to Allthenticate over SAML, test it safely with the local login fallback, then make Allthenticate the primary sign-in method.

## Before you start

* Admin access to the Allthenticate admin portal and to your Canvas instance.
* Users who will sign in have the Allthenticator app set up.
* Canvas doesn't create accounts from SSO sign-ins. Each user needs a Canvas account, created in Canvas or through an SIS import.
* Allthenticate sends each user's email address as the SAML NameID, and Canvas matches it against the account's `login_id`. Each user's `login_id` must therefore be their Allthenticate email address.

> [!WARNING]
>
> You can lock yourself out of Canvas while setting up authentication. If that happens, go to `https://<yourdomain>.instructure.com/login/canvas` to get the local Canvas sign-in form.

> [!TIP]
>
> Every Canvas account includes test and beta environments. Try this setup in the test environment before production. The Canvas metadata lists an ACS URL for each of production, test and beta under a single entity ID, so one service provider in Allthenticate covers all three.

## Download the Canvas metadata

Open `https://<yourdomain>.instructure.com/saml2` in your browser, replacing `<yourdomain>` with the first part of your Canvas domain, and save the page as an XML file, for example `canvas-metadata.xml`.

## Configure in Allthenticate

**1. Add Canvas as a service provider**

In the admin portal, go to **SSO** > **SAML** and select **Add Service Provider**. Enter a **Provider Name**, for example `Canvas LMS`. The [SAML setup guide](https://help.allthenticate.com/help/sso/saml.md#register-the-service-provider-in-allthenticate) shows each field of this dialog.

**2. Upload the Canvas metadata**

Under **Metadata File**, upload the Canvas XML file, then select **Save**.

## Configure in Canvas

**1. Add SAML authentication**

In Canvas, go to **Admin** > **Authentication**. From **Choose an Authentication Service**, select **SAML**.

**2. Point Canvas at Allthenticate**

In **IdP Metadata URI**, enter:

```text theme={null}
https://saml.allthenticate.com/idpmetadata
```

Select **Save**. The page reloads with Allthenticate's details filled in:

| Canvas field | Value |
| - | - |
| **IdP Entity ID** | `https://saml.allthenticate.com/idpmetadata` |
| **Log On URL** | `https://saml.allthenticate.com/ssoentry` |
| **Log Out URL** | `https://saml.allthenticate.com/logout` |
| **Certificate Fingerprint** | Allthenticate's signing certificate fingerprint |

Allthenticate's metadata lists a second host, so Canvas may show `https://sso.allthenticate.com/ssoentry` and `https://sso.allthenticate.com/logout` instead. Both hosts work.

## Test sign-in

1. Open a private or incognito browser window and go to `https://<yourdomain>.instructure.com/login/saml`.
2. You are redirected to Allthenticate. Approve the request on your phone.
3. You return to Canvas, signed in.

## Make SAML the primary sign-in method

Once testing succeeds, go back to **Admin** > **Authentication**, scroll to the bottom of the SAML section, set **Position** to **1**, and select **Save**. Users are now sent to Allthenticate when they sign in to Canvas.

## Troubleshooting

> [accordion] I'm locked out of Canvas
>
> Go to `https://<yourdomain>.instructure.com/login/canvas` and sign in with a local Canvas account.

> [accordion] Sign-in succeeds at Allthenticate but Canvas doesn't find the user
>
> The user's `login_id` in Canvas must match their Allthenticate email address, and the account must already exist in Canvas.

> [accordion] Canvas doesn't redirect to Allthenticate
>
> Check that **IdP Metadata URI** is exactly `https://saml.allthenticate.com/idpmetadata` and that the page reloaded with the Allthenticate values filled in after you saved.

> [accordion] Allthenticate rejects the Canvas metadata
>
> Make sure you saved the `/saml2` page as XML, not as HTML or a web archive. The file must contain the Canvas entity ID.

For other problems, see [SAML troubleshooting](https://help.allthenticate.com/help/sso/saml.md#troubleshooting). For Canvas settings, see the [Canvas Community](https://community.instructure.com).

## Related

* [Set up Allthenticate as a SAML identity provider](https://help.allthenticate.com/help/sso/saml.md)
* [Single sign-on overview](https://help.allthenticate.com/help/sso/overview.md)
* [Canvas Community](https://community.instructure.com)


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