Generating an authentication cookie

Authentication is required for provisioning the IT resources. For this purpose, we will be required to generate an authentication cookie using the Authenticate User REST API. The details of the API are as follows:

API details

Description

API function

Authenticate supplied user credential and generate authentication cookie for use in the subsequent API calls.

Endpoint

<RESTEndpoint captured in previous section>/authenticate/

Example: https://compute.eucom-north-1.oracleCloud.com/authenticate/

HTTP method

POST

Request header properties

Content-Type:application/oracle-compute-v3+jsonAccept: application/oracle-compute-v3+json

Request body

  • user: Two-part name of the user in the format/Computeidentity_domain/user
  • password: Password for the specified
    userSample
  • request:{
    "password": "xxxxx",
    "user": "/Compute-586113456/[email protected]"
    }

Response header properties

set-cookie: Authentication cookie value

 

The following screenshot shows the authentication cookie generated by invoking the Authenticate User REST API via the Postman tool:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.18.218