Updates the remaining SDKs to use the correct content type when making a token request.
.net - Needed to move to using FormUrlEncodedContent as the body and then the runtime will handle setting the Content-Type for us
Go - no work needed as this is done by the oauth2 package we included
JS - Set the header on the request and axios will serialize for us
Python - Set the header and pass post_params instead of body
This has been verified by running all 4 examples and providing credentials, where possible tests have been amended to assert we're passing the right header/body.
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[x] I have added tests to validate that the change in functionality is working as expected
Description
Updates the remaining SDKs to use the correct content type when making a token request.
FormUrlEncodedContent
as the body and then the runtime will handle setting theContent-Type
for usoauth2
package we includedpost_params
instead of bodyThis has been verified by running all 4 examples and providing credentials, where possible tests have been amended to assert we're passing the right header/body.
References
Closes #284 Language PRs to follow
Review Checklist
main