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

Use new name for tokens endpoint post #70

Merged
merged 3 commits into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Removed
Fixed
~~~~~

- Switched auth payload body parameter to keep up with spec changes
`#70 <https://github.com/raster-foundry/raster-foundry-python-client/pull/70>`__

Security
~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion rasterfoundry/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_api_token(self, refresh_token):

try:
response = self.client.Authentication.post_tokens(
refreshToken=post_body).future.result()
authBody=post_body).future.result()
return response.json()['id_token']
except JSONDecodeError:
raise RefreshTokenException('Error using refresh token, please '
Expand Down