users

package
v0.0.0-...-9518a5e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package users provides a series of HTTP handlers for managing users, passwords, and two factor secrets in a compatible database.

Index

Constants

View Source
const (
	// UserIDURIParamKey is used to refer to user IDs in router params.
	UserIDURIParamKey = "userID"
)

Variables

Providers is what we provide for dependency injectors.

Functions

func ProvideUsersService

func ProvideUsersService(
	authSettings *authservice.Config,
	logger logging.Logger,
	userDataManager types.UserDataManager,
	accountDataManager types.AccountDataManager,
	authenticator authentication.Authenticator,
	encoder encoding.ServerEncoderDecoder,
	counterProvider metrics.UnitCounterProvider,
	imageUploadProcessor images.ImageUploadProcessor,
	uploadManager uploads.UploadManager,
	routeParamManager routing.RouteParamManager,
) types.UserDataService

ProvideUsersService builds a new UsersService.

Types

type RequestValidator

type RequestValidator interface {
	Validate(req *http.Request) (bool, error)
}

RequestValidator validates request.

Jump to

Keyboard shortcuts

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