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

JWT middleware seems dead... #204

Open
hyacinthus opened this issue Feb 8, 2017 · 6 comments
Open

JWT middleware seems dead... #204

hyacinthus opened this issue Feb 8, 2017 · 6 comments

Comments

@hyacinthus
Copy link

The author no longer maintains it.

@Hentioe
Copy link

Hentioe commented Apr 10, 2017

No, it's not dead. Only go-json-rest-middleware-jwt-dependent jwt-go versions are upgraded to 3.x and are no longer compatible with the 2.x API. But the middleware is still using the 2.x API.
Add in your glide.yaml:

- package: github.com/dgrijalva/jwt-go
  version: v2.7.0

Run the command:

glide up

And then delete the vendor/StephanDollberg/go-json-rest-middleware-jwt/vendor directory.
——————
简而言之,要么降低 jwt-go 版本到 2.x 要么 fork 中间件修改成兼容 3.x 的样子。
不过,你应该早就解决了吧。

@hyacinthus
Copy link
Author

@Hentioe Yes, thank you, I've forked it and merge it to use jwt-go 3.x.

@PhanHaHus
Copy link

Do you have custom middleware before access API, example of author I cant custom , :(

@hyacinthus
Copy link
Author

@PhanHaHus I use Echo in my new projects now... It's much better than go-json-rest :)

@PhanHaHus
Copy link

@hyacinthus yeah, but Im newbie with golang, and I dont know how to struct project with echo, because go-json-rest have more example :(

@hyacinthus
Copy link
Author

@PhanHaHus Echo has a cookbook too.

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