Skip to content

Commit 200dc6a

Browse files
committed
release: v0.4.1
1 parent b65ac90 commit 200dc6a

14 files changed

Lines changed: 23 additions & 16 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v0.4.1
4+
5+
### [0.4.1](https://github.com/openfga/python-sdk/compare/v0.4.0...v0.4.1) (2024-02-13)
6+
7+
- feat: support `api_url` configuration option and deprecate `api_scheme` and `api_host`
8+
- fix: use correct content type for token request
9+
310
## v0.4.0
411

512
### [0.4.0](https://github.com/openfga/python-sdk/compare/v0.3.4...v0.4.0) (2024-01-11)

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0
1+
0.4.1

example/example1/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
aiohttp==3.9.2
1+
aiohttp==3.9.1
22
aiosignal==1.3.1
33
attrs==23.1.0
44
frozenlist==1.4.1
55
idna==3.6
66
multidict==6.0.4
7-
openfga-sdk==0.4.0
7+
openfga-sdk==0.4.1
88
python-dateutil==2.8.2
99
six==1.16.0
1010
urllib3==2.1.0

openfga_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
1515
"""
1616

17-
__version__ = "0.4.0"
17+
__version__ = "0.4.1"
1818

1919
from openfga_sdk.client.client import OpenFgaClient
2020
from openfga_sdk.client.configuration import ClientConfiguration

openfga_sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from openfga_sdk.exceptions import ApiValueError, ApiException, FgaValidationException, RateLimitExceededError
3535

3636

37-
DEFAULT_USER_AGENT = 'openfga-sdk python/0.4.0'
37+
DEFAULT_USER_AGENT = 'openfga-sdk python/0.4.1'
3838

3939

4040
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def to_debug_report(self):
447447
"OS: {env}\n"\
448448
"Python Version: {pyversion}\n"\
449449
"Version of the API: 0.1\n"\
450-
"SDK Package Version: 0.4.0".\
450+
"SDK Package Version: 0.4.1".\
451451
format(env=sys.platform, pyversion=sys.version)
452452

453453
def get_host_settings(self):

openfga_sdk/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def _obtain_token(self, client):
5454
'grant_type': "client_credentials",
5555
}
5656
headers = urllib3.response.HTTPHeaderDict(
57-
{'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'openfga-sdk (python) 0.4.0'})
57+
{'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'openfga-sdk (python) 0.4.1'})
5858
raw_response = await client.POST(token_url, headers=headers, post_params=post_params)
5959
if 200 <= raw_response.status <= 299:
6060
try:

openfga_sdk/sync/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from openfga_sdk.exceptions import ApiValueError, ApiException, FgaValidationException, RateLimitExceededError
3535

3636

37-
DEFAULT_USER_AGENT = 'openfga-sdk python/0.4.0'
37+
DEFAULT_USER_AGENT = 'openfga-sdk python/0.4.1'
3838

3939

4040
def random_time(loop_count, min_wait_in_ms):

openfga_sdk/sync/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _obtain_token(self, client):
5454
'grant_type': "client_credentials",
5555
}
5656
headers = urllib3.response.HTTPHeaderDict(
57-
{'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'openfga-sdk (python) 0.4.0'})
57+
{'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'openfga-sdk (python) 0.4.1'})
5858
raw_response = client.POST(token_url, headers=headers, post_params=post_params)
5959
if 200 <= raw_response.status <= 299:
6060
try:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from setuptools import setup, find_packages # noqa: H301
1616

1717
NAME = "openfga-sdk"
18-
VERSION = "0.4.0"
18+
VERSION = "0.4.1"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

0 commit comments

Comments
 (0)