Skip to content

Commit bdb9838

Browse files
place client_assertion jwt in body instead of url (#424)
1 parent bf19b92 commit bdb9838

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

okta/oauth.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ async def get_access_token(self):
4848
'grant_type': 'client_credentials',
4949
'scope': ' '.join(self._config["client"]["scopes"]),
5050
'client_assertion_type':
51-
'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
52-
'client_assertion': jwt
51+
'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'
5352
}
5453

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

6059
# Craft request
6160
oauth_req, err = await self._request_executor.create_request(
62-
"POST", url, None, {
61+
"POST", url, {'client_assertion': jwt}, {
6362
'Accept': "application/json",
6463
'Content-Type': 'application/x-www-form-urlencoded'
6564
}, oauth=True)

0 commit comments

Comments
 (0)