OAuth based on client credentials to access Fusion API
Summary:
We would like to enable OAuth to access Oracle Fusion REST API but with grant_type as client_credentials. Below approach we followed
- For service account from User → Service Account → OAuth 2.0 client credentials and added the OAuth.
- As resource in OAuth we have added Oracle Application Cloud(Fusion)
- using generated OCID and Secret we are calling https://<>.identity.oraclecloud.com/oauth2/v1/token
- But it's failing in Authentication with Error:
{ "error": "invalid_client", "error_description": "Client authentication failed.", "ecid": "1GUU61sUh00000000"}
5. Please note we defined Trusted application and with grant type Authorization and Refresh token it's working fine. But we want to use grant_type as client_credentials only. And after reading few article in Oracle we came to know that should be done at user level
Tagged:
0