happydpc / 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 #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was playing with Goauth2 over JWT following the example but every time i 
tried the  config the auth server exploded with a "400 bad request"

After looking at the NewToken code itself it expresses that the argument  must 
be the isa but in the example used with my secret.json(downloaded from google 
cloud api access) file the correct parameter must be the "client_id" not the 
"client_email" (which come empty in my secret.json) after that the example 
worked and i can interact with the google api.

why the such difference ?

Original issue reported on code.google.com by neoyag...@gmail.com on 7 Nov 2013 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by a...@golang.org on 7 Nov 2013 at 3:33