Documentation ¶
Index ¶
Constants ¶
View Source
const AuthMethodHeader = "X-Auth-Method"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct { Audience string AllowedGCPPrincipals []string // contains filtered or unexported fields }
func NewAuthMiddleware ¶
func NewAuthMiddleware(issuer, audience string, gcpPrincipals []string) (AuthMiddleware, error)
func (*AuthMiddleware) Require ¶
func (a *AuthMiddleware) Require(next echo.HandlerFunc) echo.HandlerFunc
type CustomClaims ¶
type CustomClaims struct {
Scope string `json:"scope"`
}
Click to show internal directories.
Click to hide internal directories.