Registering New Resources in Oracle Cloud

From the OAuth Administration page, you can register a new resource in Oracle Cloud. A resource is a protected service in Oracle Cloud. When you register a new resource, you define some parameters and these parameters are used in authorizing the client request to those services,

To register new resources in Oracle Cloud using the UI:
  1. Log in to the user’s identity domain in Oracle Cloud and click Users.
  2. Click the OAuth Administration tab.
    You can see the list of existing resources.
  3. To register multiple resources at one time by using the data from a comma-separated values (CSV) file, click Import.
  4. To register a new resource, click Register. To register the resource (the * indicates mandatory fields), enter the following information in these fields :
    1. Name: Enter the name of the OAuth resource. If another resource in the same application already uses this name, then an error is thrown.
    2. Application: Enter the name of the application, which is the service name. The resource is part of the application.
    3. Description: Enter a description of the OAuth resource. A description is optional. If this field is left blank, the description value defaults to the name of the resource.
    4. API Path: Enter a valid path for the API. The API path should be an absolute path that points to the URL of the resource. When registering a resource from the UI, you can provide only one API path for the resource.
  5. Click Register.
Populating the Audience Attribute for the New OAuth Resource:

When a resource is registered with OAuth, information about the API path is stored in the Audience attribute for the resource. When a client application requests an access token to access a protected service, OAuth uses this audience information to validate the API information provided in the access token request.