Guest User

token

a guest
Apr 7th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. curl -i -vvvv -H "Content-Type: application/json" -d '
  2. { "auth": {
  3. "identity": {
  4. "methods": ["password"],
  5. "password": {
  6. "user": {
  7. "name": "admin",
  8. "domain": { "id": "default" },
  9. "password": "password"
  10. }
  11. }
  12. }
  13. }
  14. }' http://10.0.2.15/identity_admin/v3/auth/tokens
  15. * Trying 10.0.2.15...
  16. * Connected to 10.0.2.15 (10.0.2.15) port 80 (#0)
  17. > POST /identity_admin/v3/auth/tokens HTTP/1.1
  18. > Host: 10.0.2.15
  19. > User-Agent: curl/7.47.0
  20. > Accept: */*
  21. > Content-Type: application/json
  22. > Content-Length: 230
  23. >
  24. * upload completely sent off: 230 out of 230 bytes
  25. < HTTP/1.1 201 Created
  26. HTTP/1.1 201 Created
  27. < Date: Fri, 07 Apr 2017 10:40:46 GMT
  28. Date: Fri, 07 Apr 2017 10:40:46 GMT
  29. < Server: Apache/2.4.18 (Ubuntu)
  30. Server: Apache/2.4.18 (Ubuntu)
  31. < X-Subject-Token: gAAAAABY52yu5DAsQbf_sW6q6OhS2pp3vsClJiNlzrvQM_8vOoIt_3D3IdoX4FEX_cyKuQvigQ0qnrDsrDCpk0S6p1MhfcV_OJtY6rN4zfcKdvl8y43-FEzEHWI3lk2zO6oHkkZVSYkWa7ra-eSvLHxh5u0r9oyflQ
  32. X-Subject-Token: gAAAAABY52yu5DAsQbf_sW6q6OhS2pp3vsClJiNlzrvQM_8vOoIt_3D3IdoX4FEX_cyKuQvigQ0qnrDsrDCpk0S6p1MhfcV_OJtY6rN4zfcKdvl8y43-FEzEHWI3lk2zO6oHkkZVSYkWa7ra-eSvLHxh5u0r9oyflQ
  33. < Vary: X-Auth-Token
  34. Vary: X-Auth-Token
  35. < x-openstack-request-id: req-c9989866-286c-45a2-93bb-ace397b7d147
  36. x-openstack-request-id: req-c9989866-286c-45a2-93bb-ace397b7d147
  37. < Content-Length: 312
  38. Content-Length: 312
  39. < Content-Type: application/json
  40. Content-Type: application/json
  41.  
  42. <
  43. * Connection #0 to host 10.0.2.15 left intact
  44.  
  45. {
  46. "token": {
  47. "issued_at": "2017-04-07T10:40:46.000000Z",
  48. "audit_ids": ["PqL0oE4_QvKHQruqxVdBJQ"],
  49. "methods": ["password"],
  50. "expires_at": "2017-04-07T11:40:46.000000Z",
  51. "user": {
  52. "password_expires_at": null,
  53. "domain": {
  54. "id": "default",
  55. "name": "Default"
  56. },
  57. "id": "c1fa958926b4475c925070c5a7c8b142",
  58. "name": "admin"
  59. }
  60. }
  61. }
Add Comment
Please, Sign In to add comment