echo-jwt icon indicating copy to clipboard operation
echo-jwt copied to clipboard

JWT middleware for Echo framework

Results 13 echo-jwt issues
Sort by recently updated
recently updated
newest added

Edit the sample below so that NewClaimsFunc returns a value object. https://echo.labstack.com/docs/cookbook/jwt ```go NewClaimsFunc: func(c echo.Context) jwt.Claims { return jwtCustomClaims{} }, ``` The following error occurs. ``` token is malformed:...

I think we can remove this line: https://github.com/labstack/echo-jwt/blob/2fe4a09e5ba3530b701397c0f42d5003958def3f/extractors.go#L98 The `net/http/header.go` already convert this for us: ``` // Values returns all values associated with the given key. // It is case...

**Hello, please check out this PR** I encountered an open source called echo-jwt while browsing several open sources to process jwt-related logic, and while referencing the document, there was a...

I copy/pasted `CreateExtractors` logic from Echo core library here because it was made public in `v4.10.0` but this library supports Echo versions `v4.7.0+`. Lets wait some time (maybe until 2023...

Should change middleware jwt's SuccessHandler: ``` type JWTSuccessHandler func(c echo.Context) -> type JWTSuccessHandler func(c echo.Context) error ``` It should be a minor change that will not affect most uses and...

the default errors `ErrJWTMissing` and `ErrJWTInvalid` are currently unused. I believe the currently returned error should should have been derived from the default errors so they can be overridden by...

SigningMethod is not checked when a user-defined KeyFunc is provided. This is explained in the KeyFunc documentation, but we managed to overlook this when configuring echo-jwt. This commit adds a...

In [jwt.go:117](https://github.com/labstack/echo-jwt/blob/580269f58c391ca5c13e9bb3237f7912b71bf977/jwt.go#L117) a custom error exists for this purpose to return [401](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401) ```go // ErrJWTMissing denotes an error raised when JWT token value could not be extracted from request var...