I am trying to understand if I can enrich the token issued in client cerdentials grant by some means.
I could find this reference Token inline hook | Okta Developer, but it mentions, “The token inline hook can be used to customize the Authorization Code flow that occurs between an application and the Okta org used for authentication.”
Does this means token inline hook function is limited to authorization code grant? If so there some other way to achieve this?
As long as the request makes it to the custom authorization server that has the appropriate policy/rule in place to trigger the hook AND the application fulfills requirements for the Access Policy/Rule with the hook, then yes, you can use Token Inline Hooks with Client Credentials flow