auth

package
v0.0.0-...-1aa8ce4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthenticationHeaderKey = "authentication"
	UsernameKey             = "username"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	AmqpMiddleware(*config.Config, *slog.Logger) amqp.Middleware
	AuthenticationUnaryServerInterceptor() func(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp any, err error)
	AnyAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
	StudentAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
	TeacherAccountTypeAuthenticationFunc(ctx context.Context, token string) (context.Context, error)
}

func NewClient

func NewClient(cfg *config.Config, log *slog.Logger) (Client, error)

Jump to

Keyboard shortcuts

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