Hi,
I hope someone can help me with this issue!
I am running HAProxy 3 along with Keycloak 26 in my setup. I have an issue where by my clients are not able to make use of the traditional “application/x-www-form-urlencoded” content-type to generate a JWT token as a client towards Keycloak.
I would like to offer an “application/json” API on my HAProxy application, that will then convert the content-type over to “application/x-www-form-urlencoded” and also take the JSON body of ‘{ “client_id”: “test”, “client_secret”: “test”, “grant_type”: “client_credentials” }’ and convert it to ‘client_id=test&grant_type=client_credentials&client_secret=test’ before sending it to my Keycloak backend for processing, generating a JWT token, and then responding with the JWT token.
I am happy to make use of a LUA script for this functionality, but I am not able to get it to work after numerous attempts with ChatGPT as well.
Please let me know if I can provide any other information that might assist.
Cheers,
Roebou
1 post - 1 participant