Created
August 24, 2021 20:06
-
-
Save ryanvgates/98126b8957ec9c3c507ba9ce307ab5e8 to your computer and use it in GitHub Desktop.
Swift V3 Authenticate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryan@server:~$ curl -i -X POST https://swift.server.com/auth/v3/auth/tokens -d '{"auth":{"identity":{"methods":["password"],"password":{"user":{"name":"user","domain":{"name":"Default"},"password":"password"}}}}}' | |
HTTP/1.1 200 OK | |
X-Subject-Token: AUTH_txe5555555555555555555555555555555 | |
Content-Length: 1152 | |
Content-Type: application/json; charset=UTF-8 | |
X-Trans-Id: txe55555555555555555555-5555555555 | |
X-Openstack-Request-Id: txe55555555555555555555-5555555555 | |
Date: Tue, 24 Aug 2021 19:59:09 GMT | |
{ | |
"token": | |
{ | |
"project": | |
{ | |
"domain": | |
{ | |
"id": "Default", | |
"name": "Default" | |
}, | |
"id": "AUTH_user", | |
"name": "AUTH_user" | |
}, | |
"catalog": | |
[ | |
{ | |
"endpoints": | |
[ | |
{ | |
"url": "https://swift.server.com/v1/AUTH_user", | |
"interface": "public", | |
"region": "DUMMY_REGION", | |
"region_id": "DUMMY_REGION", | |
"id": "endpoint_id_AUTH_user" | |
} | |
], | |
"type": "object-store", | |
"id": "catalog_id_for_https://swift.server.com", | |
"name": "Swift Object Storage (https://swift.server.com)" | |
}, | |
{ | |
"endpoints": | |
[ | |
{ | |
"url": "https://swift.server.com/v3", | |
"interface": "admin", | |
"region": "DUMMY_REGION", | |
"region_id": "DUMMY_REGION", | |
"id": "DUMMY_ID" | |
} | |
], | |
"type": "identity", | |
"id": "DUMMY_ID", | |
"name": "keystone" | |
} | |
], | |
"extras": | |
{}, | |
"user": | |
{ | |
"domain": | |
{ | |
"id": "Default", | |
"name": "Default" | |
}, | |
"id": "user", | |
"name": "user" | |
}, | |
"roles": | |
[ | |
{ | |
"id": "user", | |
"name": "user" | |
}, | |
{ | |
"id": "AUTH_user", | |
"name": "AUTH_user" | |
} | |
], | |
"audit_ids": | |
[ | |
"DUMMY_AUDIT_ID" | |
], | |
"issued_at": "2021-08-24T18:19:04Z", | |
"expires_at": "2021-08-25T18:19:04Z", | |
"methods": | |
[ | |
"password" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment