middlewares

package
v0.0.0-...-19f8d31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(ctx *fiber.Ctx, err error) error

func InitFiberMiddlewares

func InitFiberMiddlewares(app *fiber.App, publicRoutes publicRoutes, privateRoutes privateRoutes, localLogger Logger)

func NewJwtMiddleware

func NewJwtMiddleware(tokenRetrospect TokenRetrospect) fiber.Handler

Types

type Logger

type Logger interface {
	Info(v ...interface{})
}

type TokenRetrospect

type TokenRetrospect interface {
	RetrospectToken(ctx context.Context, accessToken string) (*gocloak.IntroSpectTokenResult, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL