auth

package
v0.9.5 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.UnaryServerInterceptor
}

Authentication interface

type Interceptor

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

Interceptor is the interceptor for the authentication

func NewInterceptor

func NewInterceptor(
	validator commonvalidator.Validator,
	grpcInterceptions *map[pbtypesgrpc.Method]pbtypesgrpc.Interception,
) (*Interceptor, error)

NewInterceptor creates a new authentication interceptor

func (*Interceptor) Authenticate

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

Authenticate returns the authentication interceptor

Jump to

Keyboard shortcuts

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