SSO Troubleshooting
Common errors and what they mean
Start here. If your symptom is listed, you may be able to resolve it without capturing a trace.
| What you see | Likely cause | Fix |
|---|---|---|
Microsoft error AADSTS20012 (“WS-Federation message … invalid”) | The Login/Logout URL is pointing at your WS-Federation endpoint (.../wsfed) instead of SAML 2.0 (.../saml2). | We correct the endpoint on our side. If you reported the URLs, resend the .../saml2 endpoint. |
Microsoft error AADSTS50105 (“not assigned to a role for the application”) | The ScopeStack enterprise application in Entra has User assignment required switched on, and this person is not assigned to it. Existing users are unaffected, so it usually shows up only when someone new tries to sign in. | You fix this yourself, and it does not need us. In the Entra admin center go to Enterprise applications > ScopeStack > Users and groups and add the user or a group they belong to. |
| Microsoft authenticates, but ScopeStack shows “Could not sign you in” | The SAML response may have failed validation. The error can also appear when ScopeStack cannot match or create the user. | For an existing user, check the assertion and account membership. Ask Support to check the signing certificate and provider configuration if needed. |
| A new user sees “Could not sign you in” after signing in from the app launcher | ScopeStack may have been unable to create the user. | Check that the provider is connected to the intended ScopeStack account and that the account has an available user seat. Send Support the user’s email and the time of the attempt. |
| Login loops back to the ScopeStack sign-in page | ScopeStack may be unable to match the assertion to the user’s record. | Confirm the user’s app assignment and ScopeStack account membership. Check the assertion’s identifier and email against the existing user. |
| Someone who has never used ScopeStack is prompted for a password at our login page | They don’t have a ScopeStack account yet. Our login page can only redirect an email address it already recognizes. | Have them open ScopeStack from your app launcher instead. Their account is created on that first sign-in. See How users get accounts. |
| An existing user sees a password prompt | ScopeStack found no eligible SSO provider for the entered email. | Confirm the exact email on the ScopeStack user record and the provider linked to that user or one of their accounts. Then check the user’s app assignment in the identity provider. |
| Signed in, but your name or email is wrong or missing | The SAML response may be missing the email or display name claim. | Check the claim mappings under Required Azure Attributes. |
If your issue isn’t listed, capture a SAML trace and send it to Support using the steps below.
A desktop browser:
- Chrome (recommended)
- Firefox (alternative)
- Edge (alternative)
A SAML tracing extension:
-
- SAML-tracer for Firefox
- **SAML Chrome Panel for Chrome
** - SAML oAuth Tracer for Edge
- **SAML Chrome Panel for Chrome
- SAML-tracer for Firefox
Steps to Capture a SAML Trace
1. Launch the Tracing Tool
- Open SAML-tracer from your browser’s toolbar.
- It opens in a new window and starts recording requests automatically.
2. Reproduce the Login Flow
- In a new tab, go to 👉 https://app.scopestack.io
- Enter your work email address.
- ScopeStack looks up the entered email and redirects you if it finds an eligible SSO provider. If it finds none, it shows the password form.
- Continue the login flow until the error occurs or you’re redirected unexpectedly.
⚠️ Important: Keep the SAML-tracer window open while you complete the login attempt.
3. Review the SAML Traffic
In the SAML-tracer window:
- Look for HTTP POST requests with URLs that include
/samlor/acs. - Click one of these entries.
- In the right-hand pane, look under the SAML tab.
You’ll see:
- A SAML Request going to Azure from ScopeStack
- A SAML Response coming back from Azure to ScopeStack
Check NameID and the email and display name claims. ScopeStack looks for a matching identifier first, then falls back to email. Both lookups use records tied to that provider. See How users get accounts.
💾 Export the Trace
After you’ve captured the full flow:
Firefox:
- Click the 💾 Save icon in SAML-tracer to export a
.harfile
Chrome:
- Right-click in the SAML Chrome Panel > Save as HAR with content
📬 Send to Support
Please email the exported file to: support@scopestack.io
Include:
- Your email address
- Time of your login attempt
- A short description of what you saw (error message, unexpected loop, etc.)
Subject Line:
SSO Login Issue – SAML Trace Attached
Required Azure Attributes
Use a stable NameID for each user. You can use an email address as NameID. If you use a different identifier, send the email as a separate claim.
- Email can come from
email,http://schemas.xmlsoap.org/ws/2005/05/identity/claims/email, orhttp://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress. - Display name can come from
name,http://schemas.xmlsoap.org/ws/2005/05/identity/claims/displayname, orhttp://schemas.microsoft.com/identity/claims/displayname.
ScopeStack uses NameID as the fallback for email or name when the corresponding claim is absent.
Need help interpreting the trace or checking your configuration? Contact support@scopestack.io.
New to ScopeStack?
ScopeStack automates scoping, pricing, and SOW generation for IT services teams. See how it fits your process.