interceptor

package
v0.0.0-...-182277c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContextKeyID = contextKey("ID")
)

Functions

This section is empty.

Types

type AuthInterceptor

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

func NewAuthInterceptor

func NewAuthInterceptor(logger log.Logger, jwtManager *jwt.Manager, authMethods map[string]bool) *AuthInterceptor

func (*AuthInterceptor) Authorize

func (i *AuthInterceptor) Authorize(ctx context.Context, method string) (*jwt.UserClaims, error)

func (*AuthInterceptor) ParseTokenFromContext

func (i *AuthInterceptor) ParseTokenFromContext(ctx context.Context) (string, error)

func (*AuthInterceptor) Unary

Jump to

Keyboard shortcuts

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