3.1.7 Ways to Generate Access Token
An authenticated bearer token is required to invoke an API. The Authentication Process for token generation utilizes cURL Commands in a CLI Tool to generate the access token and invoke REST APIs.
The Authentication Token is generated through the OAuth Client ID and Secret Credentials. The Authentication Token does not require that you log in to the required Cloud Service to invoke the REST APIs from external applications.
Ensure that you have the appropriate log-in credentials to access the required Cloud Service and the appropriate roles to perform specific operations using the API Resources. Below is a list of authentication steps, with subsequent sections offering detailed information:
- Create an Integrated (Confidential) Application.
- Get the OAuth Client ID and Client Secret
- Generate the access token
After generating an access token, proceed to invoking the APIs.
- Create an Integrated (Confidential) Application
You can create an Integrated (Confidential) Application in Oracle Identity / IDCS (OCI IAM) to generate OAuth tokens for making public API calls. - Get the OAuth Client ID and Client Secret
An OAuth Cliend ID and Client secret are required to generate an access token. - Generate Access Token Using Different Grant Types
An access token is required to invoke APIs and you can generate the access token using different grant types. - Invoke the API using the Access Token
After creating an access token using OAUth Client ID and Client secret, you can invoke the Specific API. - Generate Access Token to Execute a Public RESTful API
You can generate access token using TLS to execute a public RESTful API.
Parent topic: Getting Started with Oracle Cloud