authentication

package
v0.0.0-...-3ec0304 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CannotVerifyCredentials = "cannot verify credentials"

	ErrCouldNotEstablishTokenValidator = "could not reach oidc endpoint to create a token validator"
)

Variables

This section is empty.

Functions

func SetupAuthentication

func SetupAuthentication(parentLog *zap.Logger, URL string, audience string)

func UnaryAuthenticationInterceptor

func UnaryAuthenticationInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

Types

type Error

type Error struct {
	Message string
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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