---
title: Single Sign-On (SSO) for KeyCloak Schools
description: Learn how to configure KeyCloak with Wellio for Single Sign On.
---

[Skip to content](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#main-content)

English

Show submenu for translations

[![Untitled design](https://help.wellioeducation.com/hubfs/Untitled%20design.svg)](https://www.wellioeducation.com)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Sign In](https://app.wellioeducation.com/)

[Sign In](https://app.wellioeducation.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Centre](https://help.wellioeducation.com/?hsLang=en)
2. [IT Setup](https://help.wellioeducation.com/it-setup?hsLang=en)
3. [SSO](https://help.wellioeducation.com/it-setup?hsLang=en#sso)

# Single Sign-On (SSO) for KeyCloak Schools

## Learn how to configure KeyCloak with Wellio for Single Sign On.

⚠️ **Before you start:** IT admins will need **admin access in Wellio** AND **admin access to your KeyCloak realm** to complete the SSO setup. Please contact your school's Wellio admin to request access, or email [support@wellioeducation.com](mailto:support@wellioeducation.com)

This process is divided into six steps:

- [Create the Wellio Client & Configure SAML](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#connect)
- [Map User Attributes](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#mapping)
- [Upload Metadata File](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#metadata)
- [Check User Access](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#access)
- [Provide Test Login Details](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#testing)
- [Submit for Review](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#submit)

### Before you begin: Access the SSO Setup Page in Wellio

1. [Log into your Wellio account](https://app.wellioeducation.com/users/sign_in)
2. Click ***Settings*** on the right-hand corner.
3. Select the ***SSO*** tab  
   ![](https://help.wellioeducation.com/hs-fs/hubfs/Screenshot%202025-05-09%20at%202-19-00%E2%80%AFPM-png.png?width=670&name=Screenshot%202025-05-09%20at%202-19-00%E2%80%AFPM-png.png)
4. When asked *Which SSO provider do you want to use?*, choose ***Other*** and click ***Next***. Wellio shows your **ACS URL** and **Entity ID**. Keep this page open, as you'll need both in Step 1.

### Step 1: Create the Wellio Client & Configure SAML

1. Sign in to the KeyCloak Admin Console and select your school's realm.
2. Click ***Clients***, then ***Create client***.
3. Set *Client type* to **SAML**.
4. Set *Client ID* to the **Entity ID** from Wellio, and *Name* to '**Wellio**'. Click ***Save***.
5. On the client's ***Settings*** tab, enter the following and click ***Save***: 
     - **Valid redirect URIs:** Copy & paste the *ACS URL* from Wellio
     - **Master SAML Processing URL:** Copy & paste the *ACS URL* from Wellio
     - **Name ID format:** email
     - **Force name ID format:** On
     - **Sign documents:** On
6. Open the ***Keys*** tab and turn **Client signature required** **Off**.

⚠️ **These values are unique to your Wellio setup. Retrieve them directly from the Wellio SSO Setup - *Connect* step in *Settings*.**

### Step 2: Map User Attributes

1. In the Wellio client, open the ***Client scopes*** tab and click the *…-dedicated* scope.
2. Click *Add mapper* › *By configuration* and add these three mappers:
   
   | Mapper name | Mapper type | Property / User Attribute | SAML Attribute Name | Name format |
   | --- | --- | --- | --- | --- |
   | email | User Property | email | user.mail | Unspecified |
   | first\_name | User Attribute | firstName | first\_name | Basic |
   | last\_name | User Attribute | lastName | last\_name | Basic |
3. ![KeyCloak dedicated client scope showing the email, first\_name and last\_name mappers](https://help.wellioeducation.com/hs-fs/hubfs/keycloak-claims-redacted.png?width=670&height=255&name=keycloak-claims-redacted.png)![KeyCloak mapper settings for email, first\_name and last\_name](https://help.wellioeducation.com/hs-fs/hubfs/keycloak-attributes-redacted.png?width=670&height=162&name=keycloak-attributes-redacted.png)Take a screenshot of your mappers and upload it in the *Mapping* step of Wellio's SSO Setup page.

**🚨 These fields are CASE-SENSITIVE** — make sure each *SAML Attribute Name* is entered in lowercase exactly as shown, with an underscore.

### Step 3: Upload Metadata File

1. Open your realm's SAML metadata at `https://your-keycloak-host/realms/your-realm/protocol/saml/descriptor` and save the page as an XML file (for example, *wellio-keycloak-metadata.xml*).
2. **Upload the Metadata XML file** in the *Metadata* section of Wellio's SSO Setup page.

### Step 4: Check User Access

KeyCloak lets every user in the realm sign in to the Wellio client unless your realm restricts client access. If it does (for example, with a client role or an authentication flow that checks group membership), make sure your staff and students, and both test accounts, are allowed.

### Step 5: Provide Test Login Details

To verify the SSO setup, provide credentials for the following:

- **Teacher Test Account:** Email & password
- **Student Test Account:** Email & password

These accounts will be provisioned in Wellio for testing. The test accounts should be different and be a school-affiliated email address.

⚠️ Please ensure the following when setting up your test accounts:

1. **Both test accounts can sign in to the Wellio client** in KeyCloak (Step 4).
2. **Two-factor authentication (2FA) is OFF**. This will allow the Wellio team to test the logins without any issues.

### Step 6: Submit for Review & Testing

Once you've completed the steps above, we'll use the test account credentials you've provided in [Step 5](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#testing) to verify the configuration is working as expected before setting SSO live for your school.

**Note:** Our team will use this information to configure your setup. You can expect a response **within 7 business days** and confirmation of a successful activation or request for adjustments if needed.

### Step 7 (if applicable): User Matching for existing users

If your school previously used Wellio without SSO, existing accounts must be correctly linked to email addresses before activation. We’ll match accounts where possible and provide a list of any unmatched accounts for you to confirm.

After configuration testing, we’ll be in touch if user matching is needed and provide simple instructions to complete the process for a smooth SSO transition.

### Troubleshooting KeyCloak sign-in

**KeyCloak shows an error before the sign-in page**  
Check *Client signature required* is **Off** on the *Keys* tab, the *Client ID* is exactly the Wellio *Entity ID*, and *Valid redirect URIs* holds the Wellio *ACS URL* ([Step 1](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#connect)).

**"Email … does not match any of the school's accepted domains"**  
KeyCloak is sending a Name ID that isn't the user's school email. Set *Name ID format* to **email** with *Force name ID format* on, and check the user's email in KeyCloak.

**"Email parameter is missing"**  
The user has no email in KeyCloak, or *Name ID format* isn't set to **email**.

**Names are blank in Wellio after signing in**  
Check the mappers in [Step 2](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#mapping): the *SAML Attribute Names* must be exactly *first\_name* and *last\_name*, and the user needs a first and last name in KeyCloak.

**"Authentication failed: Invalid Signature on SAML Response"**  
Your realm's signing key has changed. Download your metadata again ([Step 3](https://help.wellioeducation.com/single-sign-on-sso-for-keycloak-schools#metadata)) and send it to [support@wellioeducation.com](mailto:support@wellioeducation.com) so we can update your SSO.

 

**Troubleshooting an issue?** If you're running into errors or want to check your setup is working correctly, see our guide: [SSO Troubleshooting for IT Teams](https://help.wellioeducation.com/sso-troubleshooting-for-it-teams?hsLang=en)

- [Getting Started](https://help.wellioeducation.com/getting-started?hsLang=en#main-content)

    - [Getting started as a teacher](https://help.wellioeducation.com/getting-started?hsLang=en#getting-started-as-a-teacher)
    - [Getting students started](https://help.wellioeducation.com/getting-started?hsLang=en#getting-students-started)
- [IT Setup](https://help.wellioeducation.com/it-setup?hsLang=en#main-content)

    - [SSO](https://help.wellioeducation.com/it-setup?hsLang=en#sso)
    - [Whitelisting](https://help.wellioeducation.com/it-setup?hsLang=en#whitelisting)
    - [Teacher & Class Enrolments](https://help.wellioeducation.com/it-setup?hsLang=en#teacher-class-enrolments)
- [For Admins](https://help.wellioeducation.com/for-admins?hsLang=en#main-content)

    - [IT Setup](https://help.wellioeducation.com/for-admins?hsLang=en#it-setup)
    - [Onboarding](https://help.wellioeducation.com/for-admins?hsLang=en#onboarding)
    - [Planning your sequences](https://help.wellioeducation.com/for-admins?hsLang=en#planning-your-sequences)
    - [Managing accounts](https://help.wellioeducation.com/for-admins?hsLang=en#managing-accounts)
    - [Planning Your Sequence](https://help.wellioeducation.com/for-admins?hsLang=en#planning-your-sequence)
- [Lesson Tools & Delivery](https://help.wellioeducation.com/lesson-tools-delivery?hsLang=en#main-content)

    - [Delivering a lesson](https://help.wellioeducation.com/lesson-tools-delivery?hsLang=en#delivering-a-lesson)
    - [Editing content](https://help.wellioeducation.com/lesson-tools-delivery?hsLang=en#editing-content)
- [For Students](https://help.wellioeducation.com/for-students?hsLang=en)
- [Insights](https://help.wellioeducation.com/insights?hsLang=en#main-content)

    - [Activity Dashboard](https://help.wellioeducation.com/insights?hsLang=en#activity-dashboard)
    - [Surveys](https://help.wellioeducation.com/insights?hsLang=en#surveys)
    - [Student Profiles](https://help.wellioeducation.com/insights?hsLang=en#student-profiles)
- [Articles For Teachers](https://help.wellioeducation.com/articles-for-teachers?hsLang=en)
- [Troubleshooting & Help](https://help.wellioeducation.com/troubleshooting-help?hsLang=en)
- [Teacher and Class Enrolment](https://help.wellioeducation.com/teacher-and-class-enrolment?hsLang=en)
- [Parent Webinars](https://help.wellioeducation.com/parent-webinars?hsLang=en)
- [Knowledge](https://help.wellioeducation.com/knowledge?hsLang=en#main-content)

    - [Professional Learning Resources for Schools](https://help.wellioeducation.com/knowledge?hsLang=en#professional-learning-resources-for-schools)

[![Untitled design](https://help.wellioeducation.com/hubfs/Untitled%20design.svg "Untitled design")](https://www.wellioeducation.com)

Teach wellbeing with confidence.

<https://www.linkedin.com/company/wellioed/posts/?feedView=all> <https://www.instagram.com/wellioeducation/> <https://www.facebook.com/p/Wellio-61574776870353/>

Copyright © 2026, Wellio