Skip to content

Instantly share code, notes, and snippets.

@alpharder
Created June 20, 2019 17:26
Show Gist options
  • Save alpharder/0252239c91612be90d8e287b28e8a178 to your computer and use it in GitHub Desktop.
Save alpharder/0252239c91612be90d8e287b28e8a178 to your computer and use it in GitHub Desktop.
incorrect date/time @ API response
curl -i https://api.selcdn.ru/v3/auth/tokens -XPOST -d '{"auth": { "identity": { "methods": ["password"], "password": { "user": { "id": "foo", "password": "bar"}}}}}'
HTTP/2 201
access-control-allow-origin: *
content-length: 781
content-type: application/json
x-subject-token: xxx
date: Thu, 20 Jun 2019 17:20:45 GMT
{"token":{"expires_at":"2019-06-21T11:35:20.207420239Z","issued_at":"2019-06-20T20:20:45.207420239Z","methods":["password"],"project":{"domain":{}},"catalog":[{"endpoints":[{"id":"asd","region_id":"ru-1","url":"https://api.selcdn.ru/v1/xxx","region":"ru-1","interface":"public"},{"id":"asd","region_id":"ru-1","url":"https://api.selcdn.ru/v1/xxx","region":"ru-1","interface":"admin"},{"id":"asd","region_id":"ru-1","url":"https://api.selcdn.ru/v1/xxx","region":"ru-1","interface":"internal"}],"type":"object-store","name":"swift","id":""}],"user":{"id":"asd","name":"xxx","domain":{"id":"default","name":"Default","links":{}}},"audit_ids":[""]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment