Accessing APIs with Client Credentials Grant and extend the token expiry time

I have been following this document to get client credentials grant for accessing the APIs. openemr/API_README.md at master · openemr/openemr · GitHub

It is understood that token provided using this grant is short lived (1 minute as stated) and refresh token is not issues. But If I were to use it in a closed environment what would be the option to extend the expiry time and if there are not expiry time is there any way to add refresh token to the response?

Hi @pritish_jain, it’s still possible to obtain the refresh token with that grant type even though not recommended.

1 Like

@stephenwaite have you seen this working with offline_access on client credentials grant? Pretty sure this gets tested as an inferno test case and should be rejected.

As for modifying the time, use at your own risk but the code option is here:

Edited Had wrong link.

2 Likes

hi @adunsulag , thanks for pointing that out. Sorry about that @pritish_jain.