middleware

package
v0.0.0-...-96f7096 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiKeyAuthentication

func ApiKeyAuthentication(database db.Database) func(next http.Handler) http.Handler

ApiKeyAuthentication If the request has an authorization header, we will try to pull the service account who owns it from the database and put the account into the context.

func IAPAuthentication

func IAPAuthentication(database db.Database, aud string) func(next http.Handler) http.Handler

IAPAuthentication authenticates a request using IAP headers.

func IAPInsecureAuthentication

func IAPInsecureAuthentication(database db.Database) func(next http.Handler) http.Handler

func Oauth2Authentication

func Oauth2Authentication(database db.Database, authHandler authn.Handler) func(next http.Handler) http.Handler

Oauth2Authentication If the request has a session cookie, look up the session from the store, and if it exists, try to load the user with the email address stored in the session.

Types

This section is empty.

Jump to

Keyboard shortcuts

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