Troubleshooting
·
Updated Mar 27, 2026
Troubleshooting — Counter Staff Cannot Log In (Entra SSO)
2 min read
1,897 views
Troubleshooting — Counter Staff Cannot Log In (Entra SSO)
Symptoms
- Staff is redirected to Microsoft login but gets an error after authenticating
- "Unauthorized" message after the Entra redirect
- Staff stuck on login page after Microsoft authentication
Likely Causes
| Cause | Description |
|---|---|
| Account not provisioned | Staff member does not have a SchoolAide account |
| Entra domain not configured | The tenant's custom Entra domain is not set |
| PKCE code exchange failure | Session expired between auth request and callback |
| Entra app registration issue | Callback URL not registered in Azure |
What Support Should Check
- Admin → Users: Does the staff member have an account? Is
entra_account_idpopulated? - Admin → Settings → Entra Domain: Is the custom Entra domain correctly configured?
- Application error logs: search for
EntraCallbackControllererrors.
Resolution Steps
- Account not in SchoolAide: Create the user account in Admin → Users and assign the correct role.
- Entra domain misconfigured: Admin → Settings → update the Entra Domain field.
- PKCE failure (session expired): Ask the user to clear browser cookies and try again.
- Azure app registration: Confirm the callback URL (
{school}.schoolaide-q.com/auth/entra/callback) is listed in Azure AD app registrations.
What Engineering May Inspect
app/Http/Controllers/Auth/EntraCallbackController.phpapp/Services/Entra/EntraOidcService.php—validateIdToken()andexchangeCode()- Session storage for
oauth.code_verifierandoauth.nonce
Was this article helpful?
Let us know so we can improve our documentation.
Thanks for your feedback!
Glad we could help.
Sorry to hear that
How can we improve this?
Thanks for your feedback!
We'll use your feedback to improve.
Related articles