What it means
The token request body must include client_assertion or client_secret. Common when a flow meant for public clients (like ROPC or device code) is used with an app registered as confidential.
Common causes
- A confidential client (an app that is expected to use a secret or certificate) sent a token request without client_secret or client_assertion.
- A public-client flow such as device code or resource owner password credentials is being used with an app registration that does not allow public client flows.
Quick checks
- Open Entra admin center → Entra ID → Monitoring & health → Sign-in logs, find the failed event, and copy the Correlation ID, date, and time.
- Read the Failure reason and Additional Details on that event. Additional Details often includes the next step.
- Check the Conditional Access tab to see which policies applied or blocked the sign-in, and the Authentication Details tab for the methods that ran and their results.
How to fix it
If you are the user
- This is usually an app configuration problem, not something you can fix with a password reset. Tell your admin or the app developer which app you were signing in to.
If you are an admin
- In Entra admin center → Entra ID → App registrations → the app → Authentication, if this is a public client (desktop, mobile, or a script using device code), enable "Allow public client flows".
- If this is a confidential client (web app or API), configure the app to send its client secret or a certificate assertion on the token request. Do not enable public client flows just to hide a missing secret.
- Confirm the request is using the right app (client) ID and is not mixing a public-client library with a confidential-client registration.
When to escalate
Escalate if the app type is unclear, or a production app started failing after a registration change. Include the client ID, the flow being used, and the token endpoint error body (without the secret itself).
Official references
- Microsoft's AADSTS error code reference (opens in a new tab)
- Official lookup for AADSTS7000218 (opens in a new tab)
Descriptions on this page are summarized from Microsoft’s official error reference and the troubleshooting articles linked above. Error wording can change; use the official lookup if something here does not match what you see.