middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMetadata         = status.Error(codes.Internal, "missing metadata")
	ErrMissingAuthHeader       = status.Error(codes.InvalidArgument, "missing authorization header")
	ErrInvalidAuthHeaderFormat = status.Error(codes.InvalidArgument, "invalid authorization header format")
	ErrUnsupportedAuthType     = status.Error(codes.InvalidArgument, "unsupported authorization type")
	ErrInvalidAuthToken        = status.Error(codes.InvalidArgument, "invalid authorization token")
	ErrExpiredAuthToken        = status.Error(codes.PermissionDenied, "authorization token is expired or invalid")
)

Functions

func AuthMiddleware

func AuthMiddleware(ctx context.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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