Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i run it? #6

Open
bolerap opened this issue Jul 2, 2016 · 2 comments
Open

How can i run it? #6

bolerap opened this issue Jul 2, 2016 · 2 comments

Comments

@bolerap
Copy link

bolerap commented Jul 2, 2016

Hello Author.
I cloned to $GOPATH/src and run go get and changed "code.google.com/p/go-uuid/uuid" to "github.com/pborman/uuid" but now ocurred errors

core/authentication/jwt_backend.go:44: invalid operation: token.Claims["exp"] (type jwt.Claims does not support indexing)
core/authentication/jwt_backend.go:45: invalid operation: token.Claims["iat"] (type jwt.Claims does not support indexing)
core/authentication/jwt_backend.go:46: invalid operation: token.Claims["sub"] (type jwt.Claims does not support indexing)
core/authentication/jwt_backend.go:80: invalid operation: token.Claims["exp"] (type jwt.Claims does not support indexing)
core/authentication/middlewares.go:12: undefined: jwt.ParseFromRequest

Many thanks.

@glennadjrussell
Copy link

@thanhngvpt See this PR #8

@gjrtimmer
Copy link

gjrtimmer commented Dec 13, 2016

current pr is not merged, so if you are unfamiliar with, how, fork the repo, visit https://github.com/dghilardi/golang-jwt-authentication-api-sample/tree/upgrade-dependency now compare, and pull the changes into your own, and check it out.

@brainatticaorg this example is awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants