iap

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package iap contains Google Cloud IAP stuff.

Index

Constants

View Source
const Header string = "x-goog-iap-jwt-assertion"

Header in Google Cloud IAP request containing JWT

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

Authenticator authenticates Google IAP requests.

func NewAuthenticator

func NewAuthenticator(audience string, users UserClient) *Authenticator

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(w http.ResponseWriter, r *http.Request) (authz.Subject, error)

type UserClient

type UserClient interface {
	GetOrCreateUser(ctx context.Context, username string) (authz.Subject, error)
}

Jump to

Keyboard shortcuts

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