middleware

package
v0.0.0-...-99e5d07 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthnMiddleware

func AuthnMiddleware(auth *authn.Client) func(http.Handler) http.Handler

AuthnMiddleware decodes the session token and packs the session into the context.

func CorsMiddleware

func CorsMiddleware(next http.Handler) http.Handler

func IsAuthenticated

func IsAuthenticated(ctx context.Context) bool

IsAuthenticated returns wether or not the user is authenticated. REQUIRES Middleware to have run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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