This guide walks the Entra admin at your school or trust through configuring Single Sign-On for TeachGen AI. Setup takes about twenty minutes in the Microsoft Entra admin centre. At the end you'll share three values with your TeachGen contact, and we complete the integration on our side, usually within one working day.
Once SSO is live, your staff sign in to app.teachgen.ai with their existing school Microsoft account — no new password, no separate user list to maintain. Your existing Entra security policies (MFA, conditional access, password rules) apply to TeachGen sign-ins automatically, and disabling someone's school account immediately revokes their TeachGen access.
Setup
Before you start
What you'll need
- Admin access to the Microsoft Entra admin centre (entra.microsoft.com).
- About 20 minutes uninterrupted — the secret value can only be copied once.
- A secure way to share three values with your TeachGen AI contact.
- Recommended: a security group (e.g. TeachGen AI Users) for who gets access — easier to manage than assigning users individually.
Output
What you'll share at the end
By the end of this guide you'll have collected three values to send securely to TeachGen.
Application (Client) ID
From Step 2 - a 36-character GUID identifying your TeachGen Enterprise Application.
Application (Client) Secret Value
From Step 3 - the secret value (not the ID). Microsoft only shows it once.
Tenant ID
From Step 1 - your Microsoft Entra tenant identifier.
Retrieve your Tenant ID
- Sign in to the Microsoft Entra admin centre.
- On the home page, your Tenant ID is shown under Basic information.
- Copy and save it somewhere secure for now — we'll collect it with the other values at the end.
- If it's not visible, search the top bar for Tenant Properties and open the result with the cog icon.
00000000-0000-0000-0000-000000000000. Create the Enterprise Application
- In the Entra admin centre left menu, go to Applications › Enterprise applications.
- Click + New application at the top of the page.
- Click + Create your own application at the top of the gallery.
- Enter TeachGen AI in the What's the name of your app? field.
- Leave the default option selected (Integrate any other application you don't find in the gallery (Non-gallery)) and click Create.
- Once the new application overview opens, copy the Application (Client) ID shown under Properties.
Generate a Client Secret
- In the Entra admin centre left menu, go to Applications › App registrations.
- Find and open your newly created TeachGen AI application.
- In the left navigation, choose Certificates & secrets.
- Under Client secrets, click + New client secret.
- Add a description, e.g. TeachGen AI integration, created on 22 June 2026.
- Set an expiration period — we recommend at least 12 months.
- Click Add.
Copy the secret value immediately
Save the value somewhere secure (a password manager is ideal). We'll collect it together with the other values at the end of this guide.
See Renewing your client secret for the rotation pattern we recommend before this secret expires.
Configure API permissions
TeachGen uses standard OpenID Connect permissions to confirm a user's identity at sign-in. We don't request mailbox, calendar, or file access.
- In App registrations, open your TeachGen AI application.
- In the left menu, choose API permissions.
- Click + Add a permission.
- Select Microsoft Graph, then Delegated permissions.
- Search for and select each of the following permissions:
- Click Add permissions to save.
- Back on the API permissions page, click Grant admin consent for [your organisation] and confirm.
Assign users and groups
By default, every user in your tenant could sign in to TeachGen. Restricting access to a security group is the cleaner way to control who has access — both for licensing and for safeguarding.
Restrict access to assigned users only
- In the Entra admin centre, go to Enterprise applications and open TeachGen AI.
- In the left menu, choose Properties.
- Set Assignment required? to Yes.
- Click Save.
Assign your security group
- Still inside the TeachGen AI application, choose Users and groups in the left menu.
- Click + Add user/group.
- Click None Selected under Users and groups.
- Pick or create a security group (e.g. TeachGen AI Users) rather than assigning individual users.
- Click Select, then Assign.
Configure the redirect URI
- In App registrations, open your TeachGen AI application.
- In the left menu, choose Authentication.
- Under Platform configurations, click + Add a platform, then choose Web.
- Add the following redirect URI exactly as shown:
https://edusage.b2clogin.com/edusage.onmicrosoft.com/oauth2/authresp- Tick the boxes for Access tokens and ID tokens.
- Click Configure (or Save) to confirm.
Next
What happens next
- We confirm receipt by email, usually within one working day.
- We apply the configuration on our side and test sign-in with a member of the teaching or admin team.
- Once confirmed, anyone in the security group you assigned in Step 5 can sign in to app.teachgen.ai with their school Microsoft account by choosing Sign in with Microsoft.
Maintenance
Renewing your client secret
Microsoft client secrets expire on the schedule you set in Step 3 — for most schools, every 12 months. When the secret expires, your staff lose the ability to sign in via SSO until a new one is issued. Rotating ahead of expiry avoids any downtime.
- Set a calendar reminder for 1–2 weeks before the expiry date.
- When it fires, repeat Step 3 to generate a new secret.
- Contact support at [email protected] and ask them for a secure method to transfer the new secret.
- We update our configuration on receipt. There's a short transition period of around 5–10 minutes, and we notify you once it's complete.
Troubleshooting
Sign-in failed: AADSTS50011 (redirect URI mismatch)
The redirect URI in Step 6 must match exactly - including https:// and trailing path. Re-open the Authentication page in App registrations, confirm the URI, and check that both Access tokens and ID tokens are ticked.
Sign-in failed: AADSTS65001 (admin has not consented)
Admin consent was not granted in Step 4. Return to API permissions and click Grant admin consent for [your organisation]. All four permissions should show Granted with a green tick.
User not assigned to the application
The user is not in the security group you assigned in Step 5. Add them to the group, or assign them directly in Users and groups on the Enterprise application.
Sign-in worked yesterday but fails today
Most often this is the client secret expiring. Check the secret's expiry date in Certificates & secrets. If it has expired, follow the Renewing your client secret section and email the new value to [email protected].
We rotated the secret but staff still see errors
Sign-ins use the previous secret until we update our configuration on receipt of the new value. The window is usually 5–10 minutes after we confirm. If you see persistent errors, email [email protected] and include the time of your last sign-in attempt.
Was this helpful?
Still stuck?