When trying to log a user into an OpenID Connect application, the following error message is returned:
{
"error": "unsupported_grant_type",
"error_description": "The authorization grant type is not supported by the authorization server. Configured grant types: [******]."
}
- OAuth/OpenID Connect applications
- Check which grant type the application is trying to use:
- If this error is received while making an
/authorizerequest, confirm what value is included as theresponse_type.
- If this error is received while making an
- If this error is received while making a
/tokenrequest, confirm what value is included as thegrant_type.
- If this error is received while making a
/device/authorizerequest, then a Device Authorization grant type is used.
- Confirm that the OpenID Connect client used is eligible to handle this grant type by navigating to Applications > Applications > select the target application > General > General Settings in the Admin Console. See the example screenshot of this section below:
- If the
response_typeis "id_token", it is necessary to use a SPA, Web, or Native app.- Ensure that Implicit (hybrid) and, below that, Allow ID Token with implicit grant type are enabled.
- If the
response_typeis "token", it is necessary to use a SPA, Web, or Native app.- Ensure that Implicit (hybrid) and, below that, Allow Access Token with implicit grant type are enabled.
- If the
response_typeis "code", it is necessary to use a SPA, Web, or Native app.- Ensure that Authorization Code is enabled.
- If the
grant_typeis "password", it is necessary to use a Native app.- Ensure that Resource Owner Password is enabled.
- If the
grant_typeis "client_credentials", it is necessary to use a Web or Service app.- Ensure that Client Credentials is enabled.
- If the
grant_typeisurn:ietf:params:oauth:grant-type:saml2-bearer, it is necessary to use a Native app.- Ensure that SAML 2.0 Assertion is enabled.
- If there is a need to use the
/device/authorizeendpoint, then it is necessary to use a Native app.- Ensure that Device Authorization is enabled.
- (Optional) If using a Custom Authorization Server, ensure that the grant type is also enabled in the applicable Access Rule for the server in question.
NOTE: If requesting multiple response_types in the same /authorize request, go through the above steps for each to ensure that the application and authorization server are configured to allow use of these grant types.
