Commit Graph

373 Commits

Author SHA1 Message Date
Dave Grijalva 8800a8c28c package doc 2014-06-15 19:29:09 -07:00
Dave Grijalva 45070d60b9 Merge branch 'master' of github.com:cenkalti/jwt-go 2014-06-15 19:21:25 -07:00
Dave Grijalva b1c2dab94c Merge branch 'fixBase64PaddingInGo13rc1' of github.com:cryptix/jwt-go 2014-06-15 19:19:06 -07:00
Henry cdfe06219b use ioutil.ReadFile for reading test keys 2014-06-03 16:21:48 +02:00
Henry 679bf0f3c9 Fixes #22 - Padding issue in Go1.3 rc1 2014-06-03 16:15:11 +02:00
Cenk Alti 9360809320 indent error flow
https://code.google.com/p/go-wiki/wiki/CodeReviewComments#Indent_Error_Flow
2014-06-02 11:28:16 +03:00
Dave Grijalva 15d25a9820 updated documentation for 1.0.0 2014-05-27 14:23:32 -07:00
Dave Grijalva fecd9ab279 Merge pull request #18 from aspic/patch-1
Update jwt.go
2014-05-22 12:02:40 -07:00
Dave Grijalva cdec324455 Merge pull request #17 from cryptix/prettierPretty
change pretty to compact
2014-05-22 11:54:38 -07:00
Kjetil Mehl 83c2b30a8b Update jwt.go
Hi! I'm using Go 1.0.2 and encountered "src/github.com/dgrijalva/jwt-go/jwt.go:87: function ends without a return statement". This commit returns explicit at the end of the function.
2014-05-22 20:27:05 +02:00
Henry c2458a49b5 change pretty to compact 2014-05-21 16:27:23 +02:00
Dave Grijalva 7bcfca65c7 mention new examples in README 2014-05-20 15:28:50 -07:00
Dave Grijalva 083094c47d Merge pull request #14 from dgrijalva/dg/better_readme
Improved README to be more useful
2014-05-20 15:23:53 -07:00
Dave Grijalva 8d78d69a0e Merge pull request #16 from dgrijalva/example_app
A basic, mildly useful example app
2014-05-20 15:23:41 -07:00
Dave Grijalva 11c8f1f10b clean up todos 2014-05-20 14:54:44 -07:00
Dave Grijalva 6b310a4cc2 fixed whitespace issue when reading tokens from stdin 2014-05-19 22:38:15 -07:00
Dave Grijalva 8724cca5ea debug flag 2014-05-19 22:19:42 -07:00
Dave Grijalva e066f61666 yet more documentation 2014-05-19 20:25:30 -07:00
Dave Grijalva a94bf1842f improved documentation 2014-05-19 20:20:38 -07:00
Dave Grijalva a77d4cd5f2 a useful example app 2014-05-19 20:13:39 -07:00
Dave Grijalva ad761c1872 Merge pull request #15 from cryptix/patch-1
jwt.ValidationError didn't not implement error
2014-05-16 17:01:03 -07:00
Henry dea87c4cd8 jwt.ValidationError didn't not implement error
I tried to type assert the err from jwt.Parse() and got this

```
./main.go:135: impossible type assertion:
	jwt.ValidationError does not implement error (Error method has pointer receiver)
```


this fixes it and makes the Errors field accessible.
2014-05-17 01:18:17 +02:00
Dave Grijalva 6517c923af better readme 2014-05-16 15:40:33 -07:00
Dave Grijalva 71c6a65cfe Merge pull request #13 from brunoqc/patch-1
Fix typo: null -> nil in README
2014-04-09 14:57:02 -07:00
Bruno Bigras 6e1aef4b31 Fix typo: null -> nil in README 2014-04-09 17:26:16 -04:00
Dave Grijalva c9e6fdb7e7 Merge pull request #11 from hermanjunge/patch-1
Update README.md
2014-03-12 11:11:08 -07:00
Dave Grijalva 54a180ee40 Merge pull request #12 from hermanjunge/patch-2
Update README.md
2014-03-12 11:10:35 -07:00
Herman Junge 717503fcf6 Update README.md
You cannot perform the not (`!`) operator on an `error`. It gives you `invalid operation: ! error`.

Tested in Go Playground: http://play.golang.org/p/jhlsHoS_gc
and locally on go1.2
2014-03-12 03:50:48 -04:00
Herman Junge bd53e37c6d Update README.md
`jwt.New()` only returns one parameter, `*Token`
2014-03-12 01:31:24 -04:00
Dave Grijalva bdb2a327a9 Merge pull request #10 from dgrijalva/detailed_error
Updated error response from Parse to provide more detail
2014-03-09 12:27:51 -07:00
Dave Grijalva aeec1afe95 documentation 2014-03-09 12:26:36 -07:00
Dave Grijalva a796f21fd5 switched error details to bitfield 2014-03-09 12:24:51 -07:00
Porjo ba4268888e gofmt README examples
Conflicts:
	README.md
2014-03-07 15:35:21 -08:00
Dave Grijalva aa7f010b16 documentation fix 2014-03-07 14:46:27 -08:00
Dave Grijalva 1a8b763fae updated parsing errors to provide more feedback 2014-03-07 14:43:11 -08:00
Dave Grijalva f80fd39457 Merge pull request #6 from cenkalti/master
check nbf claim
2014-02-17 12:53:32 -08:00
Cenk Alti fa09d56388 check nbf claim 2014-02-11 22:31:34 -08:00
Dave Grijalva 8de1bb8a61 updated TimeFunc documentation 2014-02-10 17:27:59 -08:00
Dave Grijalva 2fecbc3a69 Merge pull request #5 from cenkalti/master
make time function overrideable
2014-02-08 12:57:31 -08:00
Cenk Alti 8e74e33063 make time function overrideable 2014-02-05 15:07:40 -08:00
Dave Grijalva 955b8ff55f Update README.md 2014-01-29 10:08:31 -08:00
Dave Grijalva 0507313841 Merge pull request #4 from cenkalti/test
refactor test code
2014-01-03 11:44:28 -08:00
Cenk Alti 0ef224e8f9 refactor test code 2014-01-02 19:14:07 +02:00
Dave Grijalva f4c00c0ac2 Merge pull request #3 from abdollar/master
GetSigningMethod only returns method - fixes failing tests with go 1.1.2
2013-12-02 13:37:07 -08:00
Abdul Chaudhry fb1e5547f8 GetSigningMethod only returns method - fixes failing tests with go 1.1.2 2013-10-07 22:01:07 -07:00
Dave Grijalva 295a7342f2 gofmt 2013-02-26 21:29:51 -08:00
Dave Grijalva 57235a88e6 Merge pull request #2 from morrildl/master
Support x509 Certificates for JWT verification.
2013-02-26 21:28:41 -08:00
Dan Morrill 924b188e65 Support x509 Certificates for JWT verification.
If an attempt to parse the pubkey as PKIX fails, try again as
x509.Certificate. Some vendors are starting to use these to sign JWTs.
Example: https://www.googleapis.com/oauth2/v1/certs
2012-12-21 23:31:03 -08:00
Dave Grijalva 32c540957a capture raw string when parsing a token 2012-10-02 19:13:21 -07:00
Dave Grijalva 51b517e77a megabytes 2012-07-07 12:40:24 -07:00