Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@y2k-CIH:/home/y2k# curl -X POST -vu clientaid:secret http://localhost:8080/oauth/token -H "Accept: application/json" -d "client_id=clientid&grant_type=password&username=admin&password=admin"ecret http://localhost:8080/oauth/token -H "Accept: application/json" -d "client_id=clienti* Trying 127.0.0.1...
- * Connected to localhost (127.0.0.1) port 8080 (#0)
- * Server auth using Basic with user 'clientaid'
- > POST /oauth/token HTTP/1.1
- > Host: localhost:8080
- > Authorization: Basic Y2xpZW50YWlkOnNlY3JldA==
- > User-Agent: curl/7.43.0
- > Accept: application/json
- > Content-Length: 68
- > Content-Type: application/x-www-form-urlencoded
- >
- * upload completely sent off: 68 out of 68 bytes
- < HTTP/1.1 401
- < 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
- < X-Frame-Options: DENY
- * Authentication problem. Ignoring this.
- < WWW-Authenticate: Basic realm="oauth2/client"
- < Content-Type: application/json;charset=UTF-8
- < Transfer-Encoding: chunked
- < Date: Mon, 23 Oct 2017 05:34:43 GMT
- <
- {
- "timestamp" : "2017-10-23T05:34:43.865+0000",
- "status" : 401,
- "error" : "Unauthorized",
- "message" : "Bad credentials",
- "path" : "/oauth/token"
- * Connection #0 to host localhost left intact
- }root@y2k-CIH:/home/y2k#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement