Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"
- * Hostname was NOT found in DNS cache
- * Trying 127.0.0.1...
- * Connected to 127.0.0.1 (127.0.0.1) port 8444 (#0)
- * successfully set certificate verify locations:
- * CAfile: none
- CApath: /etc/ssl/certs
- * SSLv3, TLS handshake, Client hello (1):
- * SSLv3, TLS handshake, Server hello (2):
- * SSLv3, TLS handshake, CERT (11):
- * SSLv3, TLS handshake, Server key exchange (12):
- * SSLv3, TLS handshake, Server finished (14):
- * SSLv3, TLS handshake, Client key exchange (16):
- * SSLv3, TLS change cipher, Client hello (1):
- * SSLv3, TLS handshake, Finished (20):
- * SSLv3, TLS change cipher, Client hello (1):
- * SSLv3, TLS handshake, Finished (20):
- * SSL connection using ECDHE-RSA-AES256-SHA384
- * Server certificate:
- * subject: C=91; ST=karnataka; L=bangalore; O=Padhaitech IT Developers Private Limited; OU=IT; CN=padhaitech.com
- * start date: 2016-01-01 08:10:51 GMT
- * expire date: 2016-03-31 08:10:51 GMT
- * issuer: C=91; ST=karnataka; L=bangalore; O=Padhaitech IT Developers Private Limited; OU=IT; CN=padhaitech.com
- * SSL certificate verify result: self signed certificate (18), continuing anyway.
- * Server auth using Basic with user 'clientapp'
- > POST /oauth/token HTTP/1.1
- > Authorization: Basic Y2xpZW50YXBwOjEyMzQ1Ng==
- > User-Agent: curl/7.35.0
- > Host: 127.0.0.1:8444
- > Accept: application/json
- > Content-Length: 114
- > Content-Type: application/x-www-form-urlencoded
- >
- * upload completely sent off: 114 out of 114 bytes
- < HTTP/1.1 401 Unauthorized
- * Server Apache-Coyote/1.1 is not blacklisted
- < Server: Apache-Coyote/1.1
- < Access-Control-Allow-Origin: *
- < Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
- < Access-Control-Max-Age: 3600
- < Access-Control-Allow-Headers: x-requested-with, Content-Type, Authorization
- < X-Content-Type-Options: nosniff
- < X-XSS-Protection: 1; mode=block
- < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
- < Pragma: no-cache
- < Expires: 0
- < Strict-Transport-Security: max-age=31536000 ; includeSubDomains
- < X-Frame-Options: DENY
- < X-Application-Context: application:development:8444
- < Cache-Control: no-store
- < Pragma: no-cache
- < 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"
- < Content-Type: application/json;charset=UTF-8
- < Transfer-Encoding: chunked
- < Date: Mon, 11 Jan 2016 18:33:54 GMT
- <
- * Connection #0 to host 127.0.0.1 left intact
- {"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