commit | b925abbbe136bd2be749881f3b8ca9a03b221543 | [log] [tgz] |
---|---|---|
author | Yannick Heinrich <yannick.heinrich@gmail.com> | Mon Apr 04 16:41:01 2016 +0200 |
committer | Yannick Heinrich <yannick.heinrich@gmail.com> | Mon Apr 04 16:41:01 2016 +0200 |
tree | 9da182a3bf6d86fcca197db83d14533249d16fc9 | |
parent | 1ada734c98ebee109b29587808e4b2b8ed5bac7d [diff] |
Add more precise validation function test The previous implementation only worked due to evaluation short-circuit. Converting the result of `c.Get("scopes")` to `[]string` will always fail. This is due to implementation of `json.Unmarshal`. You have to convert to `[]interface{}` to make it work. You can find more informations about that on: http://blog.golang.org/json-and-go
JOSE is a comprehensive set of JWT, JWS, and JWE libraries.
The only other JWS/JWE/JWT implementations are specific to JWT, and none were particularly pleasant to work with.
These libraries should provide an easy, straightforward way to securely create, parse, and validate JWS, JWE, and JWTs.
JWE is currently unimplemented.
The docs can be found at [godoc.org] docs, as usual.
[MIT] license.