Authorization

You can use OAuth to authorize requests that you send to the REST API for Self-Management.

Setting up your request to use OAuth is a two-step process. First, you obtain an OAuth token, and then you use this token to access the REST API.

  1. From a browser, enter this URL:

    https://Content Management URL:port/documents/web?IdcService=GET_OAUTH_TOKEN

    The documents/web context is protected by Oracle Identity Cloud Services (IDCS). The user will be prompted to sign in to IDCS unless there is already a valid IDCS session in the browser.

    The OAuth token is returned in the tokenValue field in the JSON response. The token is valid for 7 days, and the expiration is in seconds.

  2. To use the token and access Self-Management REST endpoints, use the Bearer Authorization header. For example:

    curl -i -H 'Authorization: Bearer token' --request GET {Content Management URL}/system/api/v1/me