middleware

package module
v0.0.0-...-05fe669 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(authenticator engine.Authenticator, opts ...Option) middleware.Middleware

Client is a client authenticator middleware.

func FromContext

func FromContext(ctx context.Context) (*engine.AuthClaims, bool)

func NewContext

func NewContext(ctx context.Context, claims *engine.AuthClaims) context.Context

func Server

func Server(authenticator engine.Authenticator) middleware.Middleware

Server is a server authenticator middleware.

Types

type Option

type Option func(*options)

func WithAuthClaims

func WithAuthClaims(claims engine.AuthClaims) Option

Jump to

Keyboard shortcuts

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