authn

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 4 Imported by: 1

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) (claims engine.Claims, ok bool)

FromContext extracts the claims from the provided context (if any).

func NewContext

func NewContext(ctx context.Context, claims engine.Claims) context.Context

NewContext injects the provided claims in to the parent context.

func Server

func Server(authenticator engine.Authenticator) middleware.Middleware

Server is a server authenticator middleware.

Types

type Option

type Option func(*options)

Option is auth option.

func WithClaims

func WithClaims(claims engine.Claims) Option

WithClaims with customer claims

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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