SHARE
TWEET

Untitled

a guest Oct 23rd, 2017 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. curl -X POST -vu clientid:secret http://localhost:8080/oauth/token -H "Accept: application/json" -d "client_id=clientid&grant_type=password&username=admin&password=admin"
  2. *   Trying 127.0.0.1...
  3. * Connected to localhost (127.0.0.1) port 8080 (#0)
  4. * Server auth using Basic with user 'clientid'
  5. > POST /oauth/token HTTP/1.1
  6. > Host: localhost:8080
  7. > Authorization: Basic Y2xpZW50aWQ6c2VjcmV0
  8. > User-Agent: curl/7.43.0
  9. > Accept: application/json
  10. > Content-Length: 68
  11. > Content-Type: application/x-www-form-urlencoded
  12. >
  13. * upload completely sent off: 68 out of 68 bytes
  14. < HTTP/1.1 401
  15. < X-Content-Type-Options: nosniff
  16. < X-XSS-Protection: 1; mode=block
  17. < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
  18. < Pragma: no-cache
  19. < Expires: 0
  20. < X-Frame-Options: DENY
  21. < Access-Control-Allow-Origin: *
  22. < Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
  23. < Access-Control-Max-Age: 3600
  24. < Access-Control-Allow-Headers: accept, authorization, x-requested-with, content-type
  25. < WWW-Authenticate: Bearer error="unauthorized"
  26. < Content-Type: application/json;charset=UTF-8
  27. < Transfer-Encoding: chunked
  28. < Date: Mon, 23 Oct 2017 05:58:33 GMT
  29. <
  30. {
  31.   "error" : "unauthorized",
  32.   "error_description" : null
  33. * Connection #0 to host localhost left intact
  34. }root@y2k-CIH:/home/y2k#
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top