Documentation ¶
Index ¶
- func ApiKeyAuthentication(database db.Database) func(next http.Handler) http.Handler
- func IAPAuthentication(database db.Database, aud string) func(next http.Handler) http.Handler
- func IAPInsecureAuthentication(database db.Database) func(next http.Handler) http.Handler
- func Oauth2Authentication(database db.Database, authHandler authn.Handler) func(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiKeyAuthentication ¶
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 ¶
IAPAuthentication authenticates a request using IAP headers.
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.
Click to show internal directories.
Click to hide internal directories.