I want to create a client through REST API, for that i need to pass an intial access token(generated by client registration in keycloak) with my request.
My question here is how can i generate that intial access token through REST API. Can anyone help?
This is the token that I'm passing with my url:
Here is the screenshot of the response when I try to get the initial access token needed for registering a client by passing a body of parm count and expiration with login token for admin-cli in header:
In order to get the initial access token for client registration ,first we need to set the client role of admin-cli as realm-{name} and select client-create from it. Then get the admin bearer token for admin-cli and pass it along with the url for initial access token.