I am trying to use the custom grant type client_authenticated_user of light-oauth2 token service. The reason I cannot use standard grant types is due to my client need to talk to both legacy soap API and new restful API built on top of light-rest-4j. Today the client(webserver) does the authentication for users and we want to generate a token similar with authorization code grant type by passing the user profile to light-oauth2 token service. We have both client and light-oauth2 deployed on the same organization and the client is set up trusted client type on light-oauth2 client registration.
The question is how can I access token server to get JWT token using this custom grant type as this is not a standard flow. Do you have any examples or curl commands?