- Using FCCM Rest API
- Getting Started
- Authentication
Authentication
Ensure that you have the appropriate log-in credentials for accessing the Oracle FCCM Cloud service, and the appropriate role for creating, managing, and deleting service instances.
To get authentication, follow these steps:
- Log in to the Admin Console. For more information, see Admin Console.
- Go to Component Details and click the OAUTH Creds tab. The OAUTH Client ID and OAUTH Client Secret details are displayed.
- Copy the Client ID and Client password.
- Open Postman or relevant API tools. Select POST method and paste
the URL:
https://ip:port/oauth2/v1/token
.Note:
Replaceip:port
with tenant URL or domain name. - Click the Authorization tab. Go to the Type field and select Basic Auth from the drop-down list. The User name and Password fields are displayed.
- Enter the User Name and Password that you have copied in Step 3.
- Go to the Body tab. Select the request format as: x-www-form-urlencoded.
- Enter the KEY and Value fields as mentioned in the following table.
Table 2-1 Key and Value Details
Key Value grant_type client_credentials scope urn:opc:idm:__myscopes__ - Click the Header tab. The Header details are displayed.
- Enter the details as mentioned in the following table.
Table 2-2 Key and Value Details for Header
Key Value Postman-Token client_credentials scope urn:opc:idm:__myscopes__ Content-Type application/x-www-form-urlencoded Content-Length <calculated when request is sent> Host <calculated when request is sent> User-Agent PostmanRuntime/7.28.0 Accept */* Accept-Encoding gzip,deflate,br Connection keep-alive - Click Send. An Authorization token is generated in the
Response body. For example,
<eyJ4NXQjUzI1NiI6Ikk3cWxndm1Kal...>
This authentication key is valid for a stipulated time. - Copy only the Authorization token details.