开启指定client的服务账号
Allows you to authenticate this client to Keycloak and retrieve access token dedicated to this client. In terms of OAuth2 specification, this enables support of 'Client Credentials Grant' for this client.
开启服务账号后,可以为服务账号分配角色。
获取服务账号Token——请求 header
获取服务账号Token——请求 body
如果不启用client的服务账号,请求服务账号的Token会报如下错误。
{
"error": "unauthorized_client",
"error_description": "Client not enabled to retrieve service account"
}