diff --git a/okta/oauth.py b/okta/oauth.py index 680987ae..002c11c7 100644 --- a/okta/oauth.py +++ b/okta/oauth.py @@ -58,7 +58,7 @@ async def get_access_token(self): # Craft request oauth_req, err = await self._request_executor.create_request( - "POST", url, {'client_assertion': jwt}, { + "POST", url, form={'client_assertion': jwt}, headers={ 'Accept': "application/json", 'Content-Type': 'application/x-www-form-urlencoded' }, oauth=True)