I am trying to authenticate my service account using Client Credentials and it is not working, here is what i did?
- Created a client named asdfg
- Disabled “Standard Flow”, “Implicit Flow” and “Direct Access Grants” and kept “Service Accounts” and “Authorization” Enabled.
- Generated Client Secret.
- Configured the information regarding Grant Type and Client Authentication.
- Generate Access Token.
However, when i use that token to fetch the info it says “Unknown Error” with status code as 500, not sure what is wrong.
Also, should the username in resource server match the client id? BTW, i have a user named asdfg in my Resource Server. Since it was not working, i created a user with same name in “Users” in key cloak as no where it is mentioned where to mention the service account name.