Skip to content

Releases: alexferl/echo-jwt

v1.2.0

18 Jan 01:24
Compare
Choose a tag to compare

Simplified default error messages.

v1.1.0

18 Jan 01:12
65f94fb
Compare
Choose a tag to compare

Added global settings to be able to customize error messages and status codes.

import (
    "net/http"

    "github.com/alexferl/echo-jwt"
)

func main() {
    jwt.ErrTokenInvalid = "token is no good"
    jwt.ErrTokenInvalidStatus = http.StatusTeapot
}

v1.0.0

11 Oct 03:53
5793c48
Compare
Choose a tag to compare

Add default Unset to TokenSource instead of currently defaulting to Cookie.

v0.6.0

21 Nov 22:29
b8485e2
Compare
Choose a tag to compare

Added a token source and pass it to AfterParseFunc. Token source can be cookie or header. This is useful if you need to do extra work on a certain type of token source versus another.

v0.5.0

19 Nov 16:29
dc0211f
Compare
Choose a tag to compare

Add ability to set the encoded refresh token on the context with the option RefreshToken.ContextKeyEncoded. Defaults to refresh_token_encoded.
Also changes the signature of AfterParseFunc to accept the encoded token.

v0.4.0

04 Nov 04:04
c9c80b4
Compare
Choose a tag to compare

Add refresh token feature. Allows some routes to expect a refresh token instead of an access token.

v0.3.1

23 Oct 23:27
Compare
Choose a tag to compare

Fix route exists, but method is wrong returns a 404 - Not Found, now correctly returns a 405 - Method Not Allowed.

v0.3.0

23 Oct 23:04
Compare
Choose a tag to compare

Return 404 is a route is not found instead of 401.

v0.2.0

21 Oct 15:38
Compare
Choose a tag to compare

Add AuthScheme config.

v0.1.0

21 Oct 15:37
ce0667c
Compare
Choose a tag to compare

First release.