Skip to content

Commit

Permalink
place client_assertion jwt in body instead of url (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanapellanes-okta authored Dec 11, 2024
1 parent bf19b92 commit bdb9838
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions okta/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ async def get_access_token(self):
'grant_type': 'client_credentials',
'scope': ' '.join(self._config["client"]["scopes"]),
'client_assertion_type':
'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
'client_assertion': jwt
'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'
}

encoded_parameters = urlencode(parameters, quote_via=quote)
Expand All @@ -59,7 +58,7 @@ async def get_access_token(self):

# Craft request
oauth_req, err = await self._request_executor.create_request(
"POST", url, None, {
"POST", url, {'client_assertion': jwt}, {
'Accept': "application/json",
'Content-Type': 'application/x-www-form-urlencoded'
}, oauth=True)
Expand Down

0 comments on commit bdb9838

Please sign in to comment.