2.1.7.3 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.

Note:

Token requests using TLS Client Authentication (Mutual TLS) must be made over HTTPS. The client is required to present a valid client certificate and the corresponding private key during the TLS handshake. The client certificate must be registered with Oracle IAM (Identity Domain), and the server certificate must be trusted by the client. Token issuance occurs only after successful TLS authentication and certificate validation.

For more information, see TLS Client Authentication Grant Type.

Obtaining the IDCS Secure Domain URL

An IDCS secure domain URL is the web address used to access Oracle Identity Cloud Service (IDCS) over a secure HTTPS connection.

To obtain the IDCS secure domain URL:
  1. Sign in to the Oracle Cloud Console and go to Identity -> Identity Domains.
  2. From the Details tab, copy the Domain URL.
  3. Append /.well-known/idcs-configuration after the URL.

    Example: <idcs_domain_URL>/.well-known/idcs-configuration

  4. Search for secure_token_endpoint to get the IDCS secure domain URL.

Procedure to obtain a ca.crt file

The following procedure uses FireFox as the web browser.
  1. Obtain your secure IDCS URL.
  2. Open Firefox and enter the URL in the address bar, then press Enter.
  3. Click the padlock icon to the left of the URL in the address bar.
  4. Select Connection secure (or similar option) and then click More Information.
  5. In the window that opens, select the Security tab and click View Certificate.
  6. Under the Miscellaneous section, download either the PEM (cert) or PEM (chain) file as needed.