README ¶ chi-gcp-auth Chi middleware to auth with Google Cloud Identity Platform. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func NewGcpAuthMiddleware(client *auth.Client) *authMiddleware func NewGcpDefaultClient(ctx context.Context, projectId string, opts ...option.ClientOption) (*auth.Client, error) type Account func AccountFromCtx(ctx context.Context) (Account, error) type Authenticator Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewGcpAuthMiddleware ¶ func NewGcpAuthMiddleware(client *auth.Client) *authMiddleware func NewGcpDefaultClient ¶ func NewGcpDefaultClient(ctx context.Context, projectId string, opts ...option.ClientOption) (*auth.Client, error) Types ¶ type Account ¶ type Account struct { UUID string Email string TenantId string } func AccountFromCtx ¶ func AccountFromCtx(ctx context.Context) (Account, error) type Authenticator ¶ type Authenticator interface { TokenVerifier(next http.Handler) http.Handler } Source Files ¶ View all Source files account.go client.go headers.go middleware.go Click to show internal directories. Click to hide internal directories.