Authenticate a user

get

/auth/v1.0/

Authenticates a user with the storage service.

Request

Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Authentication succeeded
Headers

401 Response

Unauthorized
Headers
Back to Top

Examples

cURL Command

The following example shows how to get an authentication token for a user in Oracle Cloud Infrastructure Object Storage Classic by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -v -X GET \
     -H "X-Storage-User: myservice-bar:myUsername" \
     -H "X-Storage-Pass: myPassword" \
     https://foo.storage.oraclecloud.com/auth/v1.0

Sample Response

The following is a sample response of this command:

HTTP/1.1 200 OK
Date: Fri, 06 Mar 2015 11:44:29 GMT
X-Storage-Url: https://foo.storage.oraclecloud.com/v1/myservice-bar
X-Storage-Token: AUTH_tk209f7f2ea1265a0d3f29d28a2dc8ced6
X-Auth-Token: AUTH_tk209f7f2ea1265a0d3f29d28a2dc8ced6
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx23a1084b8c674fdeae8d4-0054f982ac
Back to Top