Skip to content

Instantly share code, notes, and snippets.

@ericchiang
Last active December 4, 2015 21:48
Show Gist options
  • Save ericchiang/6e82e497ec45ea2aedbf to your computer and use it in GitHub Desktop.
Save ericchiang/6e82e497ec45ea2aedbf to your computer and use it in GitHub Desktop.
[request]
POST /site/oauth2/access_token HTTP/1.1
Host: bitbucket.org
Content-Type: application/x-www-form-urlencoded
client_id=Dbq4WnHnm2ZHG8AzNd&client_secret=foobar&code=aw63zBEe5pBC8GUrQQ&grant_type=authorization_code&redirect_uri=http%3A%2F%2F127.0.0.1%3A5556%2Fauth%2Fbitbucket%2Fcallback&scope=
[response]
HTTP/1.1 400 BAD REQUEST
Content-Length: 89
Cache-Control: max-age=0
Connection: keep-alive
Content-Language: en
Content-Type: application/json
Date: Fri, 04 Dec 2015 20:13:46 GMT
Etag: "376184ea3e7c1a93723b54fa6a2f3f43"
Expires: Fri, 04 Dec 2015 20:13:46 GMT
Last-Modified: Fri, 04 Dec 2015 20:13:46 GMT
Server: nginx/1.6.2
Vary: Accept-Language, Cookie
X-Frame-Options: SAMEORIGIN
X-Render-Time: 0.0098659992218
X-Request-Count: 193
X-Served-By: app-104
X-Static-Version: c0ca86446d31
X-Version: c0ca86446d31
{"error_description": "Invalid OAuth client credentials", "error": "unauthorized_client"}
[message from dex]
ERROR: Unable to verify auth code with issuer: unauthorized_client
[request]
POST /login/oauth/access_token HTTP/1.1
Host: github.com
Content-Type: application/x-www-form-urlencoded
client_id=859b35a8cb50de236679&client_secret=foobar&code=e719739908c373393e2d&grant_type=authorization_code&redirect_uri=http%3A%2F%2F127.0.0.1%3A5556%2Fauth%2Fgithub%2Fcallback&scope=user%3Aemail
[response]
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Content-Security-Policy: default-src *; script-src assets-cdn.github.com; object-src assets-cdn.github.com; style-src 'self' 'unsafe-inline' 'unsafe-eval' assets-cdn.github.com; img-src 'self' data: assets-cdn.github.com identicons.github.com www.google-analytics.com checkout.paypal.com collector.githubapp.com *.githubusercontent.com *.gravatar.com *.wp.com; media-src 'none'; frame-src 'self' render.githubusercontent.com gist.github.com www.youtube.com player.vimeo.com checkout.paypal.com; font-src assets-cdn.github.com; connect-src 'self' live.github.com wss://live.github.com uploads.github.com status.github.com api.github.com www.google-analytics.com api.braintreegateway.com client-analytics.braintreegateway.com github-cloud.s3.amazonaws.com; base-uri 'self'; form-action 'self' github.com gist.github.com
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Date: Fri, 04 Dec 2015 20:08:55 GMT
Public-Key-Pins: max-age=300; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="JbQbUG5JMJUoI6brnx0x3vZF6jilxsapbXGVfjhN8Fg="; includeSubDomains
Server: GitHub.com
Status: 200 OK
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Vary: X-PJAX
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Github-Request-Id: 32FAFA2D:4BB6:86014C:5661F2D7
X-Request-Id: fe667c991156d22b5766730caf8908e6
X-Runtime: 0.005414
X-Served-By: 1c0ce1a213af16e49d5419559ef44f50
X-Ua-Compatible: IE=Edge,chrome=1
X-Xss-Protection: 1; mode=block
cb
error=incorrect_client_credentials&error_description=The+client_id+and%2For+client_secret+passed+are+incorrect.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23incorrect-client-credentials
0
[message from dex]
ERROR: Unable to retrieve identity: github: Bad credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment