[go-nuts] Re: Example for using JWT with SermoDigital/jose/jws

2016-06-21 Thread macmillan . josh09
It's working now. I had to uncomment this line: claims.Set("AccessToken", "level1") Thanks! On Monday, June 20, 2016 at 7:14:10 PM UTC-7, macmilla...@gmail.com wrote: > > I get this error 'Error serializing the key. json: error calling > MarshalJSON for type jws.Claims: unexpected end of JSON i

[go-nuts] Re: Example for using JWT with SermoDigital/jose/jws

2016-06-20 Thread macmillan . josh09
Thanks Scott. Even after changing it to RS256 I get the same error. On Monday, June 20, 2016 at 7:14:10 PM UTC-7, macmilla...@gmail.com wrote: > > I get this error 'Error serializing the key. json: error calling > MarshalJSON for type jws.Claims: unexpected end of JSON input' > I believe that I n

[go-nuts] Example for using JWT with SermoDigital/jose/jws

2016-06-20 Thread macmillan . josh09
I get this error 'Error serializing the key. json: error calling MarshalJSON for type jws.Claims: unexpected end of JSON input' I believe that I need to find the function that sign the token. The docs don't have any usage exampl - https://godoc.org/github.com/SermoDigital/jose/jws Any working