3. Authenticate against your Object Storage service instance by using Postman
In this section, you’ll use the Postman Chrome application to authenticate against your Object Storage service instance.
- If it’s not already running, start Chrome.
- Click Apps and launch Postman.
- Select POST as the method and from the file where you saved the access credentials, copy the
auth_url
into the Enter request URL here field.
- Append a forward slash (/) to the URL that you just pasted. Then, append
v3/auth/tokens
to the URL making the full URL:auth_url/v3/auth/tokens
- Under Body, select raw and then set type to JSON(application/json) and enter the following code, replacing with your
userID
,projectID
andpassword
:
{
"auth": {
"identity": {
"methods": [
"password"
],
"password": {
"user": {
"id": "your userID",
"password": "your password"
}
}
},
"scope": {
"project": {
"id": "your projectID"
}
}
}
}
- Click Send to send the request.
- Verify that the status indicates
201 Created
and then click Headers.
- Save the value of
X-Subject-Token
from the returned header in your credentials file. Then, go back to the Body of the response and scroll down through the endpoints to find the one with typeobject-store
and nameswift
. Copy theurl
for the entry matching thepublic
interface and also save this to your credentials file.