Hello, today our team wanted to use the client together with keycloak. Keycloak expects the request for the token to have its payload with content-type x-www-form-urlencoded following the standard set here: https://openid.net/specs/openid-connect-core-1_0.html#TokenRequest.
The Node client sends the payload as json, so when i try to get a token the gateway responds with 415 Unsupported Media Type Error.
The go-zeebe-client and java-zeebe-client already use x-www-form-urlencoded as well
Hello, today our team wanted to use the client together with keycloak. Keycloak expects the request for the token to have its payload with content-type x-www-form-urlencoded following the standard set here: https://openid.net/specs/openid-connect-core-1_0.html#TokenRequest.
The Node client sends the payload as json, so when i try to get a token the gateway responds with 415 Unsupported Media Type Error.
The go-zeebe-client and java-zeebe-client already use x-www-form-urlencoded as well
Here is the package the go-client is using: https://cs.opensource.google/go/x/oauth2/+/f2134210:internal/token.go;drc=f21342109be17cd214ecfcd33065b79cd571673e;l=159
Here is the function the java-zeebe-client is currently using:
Expected Behavior
Should send the payload to the Identity Provider using the correct Payload Content-Type
Current Behavior
Client sends the payload as json, and receives 415 Unsupported Media Type Error.
Possible Solution
Change the content-type to x-www-form-urlencoded and change the payload to form format. A Pull Request with the changes will follow shortly.
Steps to Reproduce