I am currently integrating DocuSign with Oracle Integration (OIC). At present, I am using the following REST API to generate a bearer token:
<BASE_URL>/oauth/token?grant_type=refresh_token&client_id=[client_id]&client_secret=[client_secret]&refresh_token=[refresh_token]
This works fine as long as my refresh token is valid. However, when the refresh token itself expires, I currently use Postman to manually log in to my DocuSign account, provide consent, and generate a new refresh token.
This approach is not ideal since it introduces manual intervention and breaks the automation.
My Questions:
-
What is the best way to avoid this manual Postman step?
-
Is there a way to fully automate the token generation process in Oracle Integration so that I don’t have to worry about refresh token expiry?
-
Should I switch to the JWT Grant flow for this type of server-to-server integration?
Any guidance on the recommended approach would be greatly appreciated.
Thanks in advance!