Community Middleware List for the Iris Web Framework.
Updates for Iris version 12.2.11
Fix a go.mod parsing issue (last require parenthesis missing) caused by previous commit.
Update go.mod files for Iris version 12.1.1.
Updates for Iris version 12.1.0
Compatible with go1.12 and above as Iris v11.2.0
Two smal changes for the JWT middleware:
The jwt/Config.Debug
was removed and its value depends on the Iris application's logger level, e.g. app.Logger().SetLevel("debug")
as it prints through it now.
The jwt/Config.ErrorHandler
was func(Context, string)
now it's func(Context, error)
which can be dynamically checked through the new 3 error variables:
var (
// ErrTokenMissing is the error value that it's returned when
// a token is not found based on the token extractor.
ErrTokenMissing = errors.New("required authorization token not found")
// ErrTokenInvalid is the error value that it's returned when
// a token is not valid.
ErrTokenInvalid = errors.New("token is invalid")
// ErrTokenExpired is the error value that it's returned when
// a token value is found and it's valid but it's expired.
ErrTokenExpired = errors.New("token is expired")
)
And last, the jwt middleware now contains shortcuts for Signing Methods, the Token struct type and NewToken
and NewTokenWithClaims
functions to create a Token struct value.
Handler list for the current Iris release, v10
Middleware backup for the iris version 8
The Iris Web Framework version 5 middleware