auth

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth

func BasicAuth(config config.Provider, next http.HandlerFunc) http.HandlerFunc

Types

type Interface

type Interface interface {
	HandleHTTP(w http.ResponseWriter, r *http.Request) error
	HandleToken(ctx context.Context, token string) error
	GetUserID(ctx context.Context, token string) (uuid.UUID, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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