Documentation ¶
Index ¶
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 InsecureUserHeader ¶
InsecureUserHeader returns a middleware that sets the email address of the authenticated user from the x-user-email header. This middleware is intended for local development and testing purposes only.
func Oauth2Authentication ¶
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.