7.4.1 Login

HTTP Request: POST https://localhost:7007/ui/v1/login/

Authentication: Uses cookie-based authentication.

Table 7-2 Parameters

Parameter Parameter Type Value
Content-type Header application/x-www-form-urlencoded
username Body <username>
password Body <password>

Request

The following curl command signs the user in to the Graph Visualization application:

curl --cacert /etc/oracle/graph/ca_certificate.pem -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'username=oracle&password=<user password>' -c cookie.txt https://localhost:7007/ui/v1/login/

Response: None

On successful login, the server session cookie is stored in a cookie file, cookie.txt. Use this cookie file, in the subsequent calls to the API.