middlewares

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticator

func Authenticator(next http.Handler) http.Handler

Authenticator middleware.

func ClaimsFromCtx

func ClaimsFromCtx(ctx context.Context) auth.UserClaims

ClaimsFromCtx returns user claims from context.

func SetupAuthenticator

func SetupAuthenticator(users core.UserStore) func(http.Handler) http.Handler

SetupAuthenticator middleware.

func WorkerAuthenticator

func WorkerAuthenticator(next http.Handler) http.Handler

WorkerAuthenticator middleware.

func WorkerClaimsFromCtx

func WorkerClaimsFromCtx(ctx context.Context) auth.WorkerClaims

WorkerClaimsFromCtx returns worker claims from context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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