auth

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication interface {
	Authenticate() grpc.UnaryClientInterceptor
}

Authentication interface

type Interceptor

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

Interceptor is the interceptor for the authentication

func NewInterceptor

func NewInterceptor(
	tokenSource *oauth.TokenSource,
	grpcInterceptions *map[pbtypesgrpc.Method]pbtypesgrpc.Interception,
) (*Interceptor, error)

NewInterceptor creates a new authentication interceptor

func (*Interceptor) Authenticate

func (i *Interceptor) Authenticate() grpc.UnaryClientInterceptor

Authenticate returns a new unary client interceptor that adds authentication metadata to the context

Jump to

Keyboard shortcuts

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