Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
func StaticUser ¶
func StaticUser(email string) Middleware
StaticUser returns a middleware that sets the email address of the authenticated user to the given value
func ValidateIAPJWT ¶
func ValidateIAPJWT(aud string) Middleware
ValidateIAPJWT returns a middleware that validates the X-Goog-IAP-JWT-Assertion header and sets the email address of the authenticated user to the value of the X-Goog-Authenticated-User-Email header
Click to show internal directories.
Click to hide internal directories.