openfga / sdk-generator

OpenFGA Client SDK Generator
Apache License 2.0
16 stars 38 forks source link

fix(java-sdk): send the credentials flow request as form-urlencoded #286

Closed jimmyjames closed 8 months ago

jimmyjames commented 8 months ago

Description

As noted in https://github.com/openfga/java-sdk/issues/47, the OAuth2 credentials should be sent as a url-encoded form post. #281 fixed the content-type, but the request body was still being sent as JSON, which caused the request to fail. This change updates the request to be sent as a application/x-www-form-urlencode form post.

References

Review Checklist