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
1 file changed
tree: 9da182a3bf6d86fcca197db83d14533249d16fc9
  1. crypto/
  2. jws/
  3. jwt/
  4. .gitignore
  5. .tags
  6. .travis.yml
  7. _test.sh
  8. base64.go
  9. base64_test.go
  10. cover.html
  11. doc.go
  12. header.go
  13. header_test.go
  14. LICENSE
  15. README.md
  16. stubs_test.go
README.md

JOSE

Build Status GoDoc

JOSE is a comprehensive set of JWT, JWS, and JWE libraries.

Why

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.

Notes:

JWE is currently unimplemented.

Version 0.9:

Documentation

The docs can be found at [godoc.org] docs, as usual.

JWS RFC

JWE RFC

JWT RFC

License

[MIT] license.