Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@deenine
Created July 31, 2015 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deenine/7df9f849a5e4fd249b79 to your computer and use it in GitHub Desktop.
Save deenine/7df9f849a5e4fd249b79 to your computer and use it in GitHub Desktop.
Dougs-MacBook-Air:anchor doug$ curl -i -H "Content-Type: application/json" -d '
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "anchoruser",
"domain": { "id": "default" },
"password": "anchorpass"
}
}
}
}
}' http://192.168.0.14:5000/v3/auth/tokens ; echo
HTTP/1.1 201 Created
Date: Fri, 31 Jul 2015 10:17:13 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Subject-Token: c87666c3e2f843ecb715c80465497dae
Vary: X-Auth-Token
x-openstack-request-id: req-3d085a5f-71b1-4d88-8510-6dcd291f7bec
Content-Length: 302
Content-Type: application/json
{"token": {"methods": ["password"], "expires_at": "2015-07-31T11:17:13.587245Z", "extras": {}, "user": {"domain": {"id": "default", "name": "Default"}, "id": "70d7c28d634d4fe39063017f4ffdc9af", "name": "anchoruser"}, "audit_ids": ["MTQhpd09TACsk2R7nyq_gQ"], "issued_at": "2015-07-31T10:17:13.587290Z"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment