Iris Contrib Middleware Versions Save

Community Middleware List for the Iris Web Framework.

v12.2.11

3 weeks ago

Updates for Iris version 12.2.11

v12.2.0

1 year ago

v12.1.2

4 years ago

Fix a go.mod parsing issue (last require parenthesis missing) caused by previous commit.

v12.1.1

4 years ago

Update go.mod files for Iris version 12.1.1.

v12.1.0

4 years ago

Updates for Iris version 12.1.0

v11

4 years ago

Compatible with go1.12 and above as Iris v11.2.0

Two smal changes for the JWT middleware:

  1. 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.

  2. 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.

v10

6 years ago

Handler list for the current Iris release, v10

v8

6 years ago

Middleware backup for the iris version 8

v5

7 years ago

The Iris Web Framework version 5 middleware

v4

7 years ago