auth

package
v0.12.3-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidAuthError = status.Errorf(codes.Unauthenticated, "invalid authentication credentials")

Functions

This section is empty.

Types

type OIDCAuth

type OIDCAuth struct {
	Audience             string `mapstructure:"audience"`
	EligibleEmailDomains string `mapstructure:"eligible_email_domains"`
}

type OIDCEmailContextKey

type OIDCEmailContextKey struct{}

type OIDCValidator

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

func NewOIDCValidator

func NewOIDCValidator(validator Validator, config OIDCAuth) *OIDCValidator

func (*OIDCValidator) WithOIDCValidator

func (v *OIDCValidator) WithOIDCValidator() grpc.UnaryServerInterceptor

type Validator

type Validator interface {
	Validate(ctx context.Context, token string, audience string) (*idtoken.Payload, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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