middleware

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 7 Imported by: 0

README

chi-gcp-auth

Chi middleware to auth with Google Cloud Identity Platform.

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL