Guest User

Untitled

a guest
Jan 11th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. curl -X POST -kvu clientapp:123456 https://127.0.0.1:8444/oauth/token -H "Accept: application/json" -d "password=mypassword&username=black&grant_type=password&scope=read%20write&client_secret=123456&client_id=clientapp"
  2. * Hostname was NOT found in DNS cache
  3. * Trying 127.0.0.1...
  4. * Connected to 127.0.0.1 (127.0.0.1) port 8444 (#0)
  5. * successfully set certificate verify locations:
  6. * CAfile: none
  7. CApath: /etc/ssl/certs
  8. * SSLv3, TLS handshake, Client hello (1):
  9. * SSLv3, TLS handshake, Server hello (2):
  10. * SSLv3, TLS handshake, CERT (11):
  11. * SSLv3, TLS handshake, Server key exchange (12):
  12. * SSLv3, TLS handshake, Server finished (14):
  13. * SSLv3, TLS handshake, Client key exchange (16):
  14. * SSLv3, TLS change cipher, Client hello (1):
  15. * SSLv3, TLS handshake, Finished (20):
  16. * SSLv3, TLS change cipher, Client hello (1):
  17. * SSLv3, TLS handshake, Finished (20):
  18. * SSL connection using ECDHE-RSA-AES256-SHA384
  19. * Server certificate:
  20. * subject: C=91; ST=karnataka; L=bangalore; O=Padhaitech IT Developers Private Limited; OU=IT; CN=padhaitech.com
  21. * start date: 2016-01-01 08:10:51 GMT
  22. * expire date: 2016-03-31 08:10:51 GMT
  23. * issuer: C=91; ST=karnataka; L=bangalore; O=Padhaitech IT Developers Private Limited; OU=IT; CN=padhaitech.com
  24. * SSL certificate verify result: self signed certificate (18), continuing anyway.
  25. * Server auth using Basic with user 'clientapp'
  26. > POST /oauth/token HTTP/1.1
  27. > Authorization: Basic Y2xpZW50YXBwOjEyMzQ1Ng==
  28. > User-Agent: curl/7.35.0
  29. > Host: 127.0.0.1:8444
  30. > Accept: application/json
  31. > Content-Length: 114
  32. > Content-Type: application/x-www-form-urlencoded
  33. >
  34. * upload completely sent off: 114 out of 114 bytes
  35. < HTTP/1.1 401 Unauthorized
  36. * Server Apache-Coyote/1.1 is not blacklisted
  37. < Server: Apache-Coyote/1.1
  38. < Access-Control-Allow-Origin: *
  39. < Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
  40. < Access-Control-Max-Age: 3600
  41. < Access-Control-Allow-Headers: x-requested-with, Content-Type, Authorization
  42. < X-Content-Type-Options: nosniff
  43. < X-XSS-Protection: 1; mode=block
  44. < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
  45. < Pragma: no-cache
  46. < Expires: 0
  47. < Strict-Transport-Security: max-age=31536000 ; includeSubDomains
  48. < X-Frame-Options: DENY
  49. < X-Application-Context: application:development:8444
  50. < Cache-Control: no-store
  51. < Pragma: no-cache
  52. < WWW-Authenticate: Bearer realm="oauth", error="unauthorized", error_description="could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet"
  53. < Content-Type: application/json;charset=UTF-8
  54. < Transfer-Encoding: chunked
  55. < Date: Mon, 11 Jan 2016 18:33:54 GMT
  56. <
  57. * Connection #0 to host 127.0.0.1 left intact
  58. {"error":"unauthorized","error_description":"could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet"}%
Add Comment
Please, Sign In to add comment