Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 1cd5219

Browse files
authored
Use new name for tokens endpoint post (#70)
1 parent 28d7ce3 commit 1cd5219

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Removed
1919
Fixed
2020
~~~~~
2121

22+
- Switched auth payload body parameter to keep up with spec changes
23+
`#70 <https://github.com/raster-foundry/raster-foundry-python-client/pull/70>`__
24+
2225
Security
2326
~~~~~~~~
2427

rasterfoundry/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_api_token(self, refresh_token):
8282

8383
try:
8484
response = self.client.Authentication.post_tokens(
85-
refreshToken=post_body).future.result()
85+
authBody=post_body).future.result()
8686
return response.json()['id_token']
8787
except JSONDecodeError:
8888
raise RefreshTokenException('Error using refresh token, please '

0 commit comments

Comments
 (0)