identity

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashPasswordRequest

type HashPasswordRequest struct {
	Password string `json:"password" validate:"required"`
}

type HashPasswordResponse

type HashPasswordResponse struct {
	Password       string `json:"password"`
	HashedPassword string `json:"hashedPassword"`
}

type IPasswordHasher

type IPasswordHasher interface {
	// IsAcceptablePassword checks if the password is acceptable.  i.e. not the same as the username, and meets the minimum requirements
	IsAcceptablePassword(request *IsAcceptablePasswordRequest) error
	// HashPassword hashes the password
	HashPassword(ctx context.Context, request *HashPasswordRequest) (*HashPasswordResponse, error)
	// VerifyPassword verifies the password
	VerifyPassword(ctx context.Context, request *VerifyPasswordRequest) error
}

type IUserIdGenerator

type IUserIdGenerator interface {
	GenerateUserId() string
}

type IsAcceptablePasswordRequest added in v1.0.29

type IsAcceptablePasswordRequest struct {
	Password string `json:"password" validate:"required"`
}

type VerifyPasswordRequest

type VerifyPasswordRequest struct {
	HashedPassword string `json:"hashedPassword" validate:"required"`
	Password       string `json:"password" validate:"required"`
}

Jump to

Keyboard shortcuts

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