Here how to do client flow credential:
You will need to recreate a new JWT token in your API…
Build a JWT for Client Authentication | Okta Developer the code is only in Java or JS but at least we can see what we need.
I want to have the same flow as your… but i also stuck.
my problem : How to lock down an API token to only access what our application needs - #12 by andrea