OAuth 2.0 Error: unauthorized_client (client not allowed to use this grant type)
The client exists, but isn’t allowed to use the requested flow (grant type or response type).
Grant type not allowed for the clientThe client is not authorized to use the provided grant typeis not authorized for the grant type Meaning
Identity providers enable grant types per application: authorization_code, client_credentials, refresh_token, device_code, implicit. Auth0 says “Grant type 'X' not allowed for the client”, Okta “The client is not authorized to use the provided grant type”.
Common causes
- Grant type not enabled for the app (client_credentials, password, refresh_token)
- App type mismatch (SPA vs regular web vs native)
- Implicit flow disabled
⚡ Quick fix
- Enable the grant type in the provider’s app settings
- Use the flow matching the app type (auth code + PKCE for SPAs/mobile)
- Create a machine-to-machine app for client_credentials
Detailed fix by platform
Shell
curl -s -X POST https://auth.example.com/oauth/token -d grant_type=client_credentials -d client_id=$ID -d client_secret=$SECRET -d audience=https://api.example.com
How to diagnose
- Grant — Which grant type is sent?
- App settings — Allowed grants
- App type — SPA/native/M2M
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Authentication
- disallowed_useragent Google OAuth: Error 403: disallowed_useragent (sign-in from an embedded WebView)
- invalid_token invalid_token: The access token is invalid (JsonWebTokenError: invalid signature / jwt malformed)
- Access blocked: has not completed the Google verification process Google OAuth: Error 403: access_denied — The developer hasn't given you access to this app / has not completed the Google verification process
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026