Authorization Grant Type not Supported by Server

Hello,

I am attempting to get a JWT token to use the Corteza API, and I am running into an issue. I am getting:

{
“error”: “unsupported_grant_type”,
“error_description”: “The authorization grant type is not supported by the authorization server”
}

The body of my request is:
{“grant_type”:“client_credentials”,“scope”:“api”}

I am using an auth client whose grant type is client_credentials.

Any help is much appreciated!

-Carson

Did you add an user ID to impersonate while using the client credentials? Maybe provide a scrrenshot?

What version are you using?
This was added in the 2021.3.4 patch release.
Did you follow this documentation?
Based on the error message I would assume that you’re using an older version that doesn’t have that feature yet.

Alternatively you can use the auth jwt CLI command to get the JWT token; it still works in this version, but we might remove it in some later release.