openfga / python-sdk

OpenFGA SDK for Python 3 - https://pypi.org/project/openfga-sdk/
https://openfga.dev
Apache License 2.0
35 stars 12 forks source link

fix: use correct content type for token request #69

Closed ewanharris closed 7 months ago

ewanharris commented 7 months ago

Description

Moves the client to use application/x-www-form-urlencoded for the content type when making token requests per the spec.

In order to do this we set the header on the request and provide post_params instead of body on the request.

References

Part of https://github.com/openfga/sdk-generator/issues/284 Generated from https://github.com/openfga/sdk-generator/issues/308

Review Checklist