How Do I Use Authorization Grants?

In Oracle Cloud, an OAuth client makes a Representational State Transfer (REST) API call to access a protected service. As an administrator, when you secure cloud services, follow the guidelines to decide which type of authorization grant is suitable. An authorization grant is a credential representing the resource owner's authorization to access its protected resource. The authorization grant is used by the OAuth client to obtain an access token.

Oracle Cloud supports the following grant types:
  • Resource owner password credentials grant

  • Client credentials grant

  • User assertion grant

Guidelines to Choose an OAuth Workflow

Use the following guidelines to determine which workflow or grant type to use:

Use the resource owner password credentials workflow when:
  • The OAuth clients are confidential clients.

  • The resource owner has a trust relationship with the client.

  • The client application doesn’t need to store the credentials of the resource owner within the application or on the device.

Using the resource owner password credentials workflow, there are two ways to request an access token:

Using the client credential workflow, there are two ways to request an access token:

Use the user assertion workflow when:
  • The OAuth clients are confidential clients.

  • The user’s credentials should never be accessible to the client application.

  • The OAuth clients are trusted to assert a user identity on behalf of the user.

Using the user assertion workflow, there are two ways to request an access token: