OAuth 2.0 Refresh-token based EPM Automate login fails
Summary:
Refresh-Token based EPM automate connection fails
Content (please ensure you mask any confidential information):
Groovy code to execute Recompute ownership module works perfectly fine with basic authorization. Replacing the basic auth with OAuth 2.0 Refresh-Token/ClientID fails with error:
EPMAT-1:Unable to fetch access token 401
To note: ClientID having Service Admin access.
Version (include the version you are using, if applicable):
FCCS Cloud
Code Snippet (add any code snippets that support your topic, if applicable):
EpmAutomateStatus pwdEncrypt = fccsObj.execute('encrypt','<Refresh-Token>','encryptKey','Pwd3.epw','ClientID=<ClientID>')
EpmAutomateStatus fccsLogin = fccsObj.execute('Login','<ClientID>','Pwd3.epw','https://xyz.epm.us-phoenix-1.ocs.oraclecloud.com')