
bcul3 (bcul3) asked a question.
Hi All,
I am getting following error using client credentials flow -
Client Credentials requests to the Org Authorization Server must use the private_key_jwt token_endpoint_auth_method.
this is how I am making request -
response = requests.post(TOKEN_URL, data={
'grant_type': 'client_credentials',
'client_id': CLIENT_ID,
'client_secret': CLIENT_SECRET,
'scope': 'okta.clients.read'
})
can you please guide me or point to some documentation on how to excahnge client_id and client_secret for access token.
I don't have option to create a custom authorization server.

Hi @bcul3 (bcul3) , thank you for contacting Okta Community!
I've reviewed our documentation for something relevant. It looks like your question is more appropriate for our dedicated Okta Developer Forum. I advise reaching out via devforum.okta.com as they will have more insight into this topic.
In the meantime, you can reference this similar post from Okta Developer and this article on how to Implement OAuth for Okta with a service app.
While we'll do our best to answer your questions here, this medium is more inclined towards Okta's core products and features (non-developer work).
Regards.
--
Ask Us Anything thru 7/14: Okta WIC leadership want to hear from you