phamngsinh / goauth2

Automatically exported from code.google.com/p/goauth2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

fix JWT example #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Download this project
2. Create private key and jsom ( https://code.google.com/apis/console )
3. Create key.pem (http://godoc.org/code.google.com/p/goauth2/oauth/jwt)
   $ openssl pkcs12 -in <key.p12> -nocerts -passin pass:notasecret -nodes -out <key.pem>
4. Run: example -k=./.google/key.pem -s=./.google/client_secrets.json

Result:
2013/03/29 12:17:54 assertion error:invalid response: 400 Bad Request

Original issue reported on code.google.com by monofl...@gmail.com on 29 Mar 2013 at 8:23

GoogleCodeExporter commented 8 years ago
Any idea why it's not working?

Original comment by a...@golang.org on 8 Apr 2013 at 4:27

GoogleCodeExporter commented 8 years ago
I just saw this today and I am looking into it.  I can recreate the failure 
exactly as reported.

2013/04/29 14:29:38 assertion error:invalid response: 400 Bad Request

Original comment by gaval...@gmail.com on 29 Apr 2013 at 6:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
https://codereview.appspot.com/8853050/

Original comment by gaval...@gmail.com on 29 Apr 2013 at 8:30

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by a...@google.com on 30 Apr 2013 at 5:15

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 2d711318934b.

Original comment by a...@golang.org on 30 Apr 2013 at 5:16