administrator

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CheckPasswordService = ServiceProvider + ".CheckPassword"
View Source
const CreateService = ServiceProvider + ".Create"
View Source
const ForgotPasswordService = ServiceProvider + ".ForgotPassword"
View Source
const GetMyUserService = ServiceProvider + ".GetMyUser"
View Source
const ServiceProvider = "HumanUser-Administrator"
View Source
const SetPasswordService = ServiceProvider + ".SetPassword"
View Source
const UpdateAllowedFieldsService = ServiceProvider + ".UpdateAllowedFields"
View Source
const UpdatePasswordService = ServiceProvider + ".UpdatePassword"

Variables

View Source
var SystemUserPermissions = make([]api.Permission, 0)

Functions

This section is empty.

Types

type Administrator

type Administrator interface {
	GetMyUser(request *GetMyUserRequest) (*GetMyUserResponse, error)
	UpdateAllowedFields(request *UpdateAllowedFieldsRequest) (*UpdateAllowedFieldsResponse, error)
	Create(request *CreateRequest) (*CreateResponse, error)
	SetPassword(request *SetPasswordRequest) (*SetPasswordResponse, error)
	CheckPassword(request *CheckPasswordRequest) (*CheckPasswordResponse, error)
	UpdatePassword(request *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
	ForgotPassword(request *ForgotPasswordRequest) (*ForgotPasswordResponse, error)
}

type CheckPasswordRequest

type CheckPasswordRequest struct {
	Claims   claims.Claims
	Password string
}

type CheckPasswordResponse

type CheckPasswordResponse struct {
	Result bool
}

type CreateRequest

type CreateRequest struct {
	Claims claims.Claims
	User   human.User
}

type CreateResponse

type CreateResponse struct {
	User human.User
}

type ForgotPasswordRequest

type ForgotPasswordRequest struct {
	UsernameOrEmailAddress string
}

type ForgotPasswordResponse

type ForgotPasswordResponse struct {
	URLToken string
}

type GetMyUserRequest

type GetMyUserRequest struct {
	Claims claims.Claims
}

type GetMyUserResponse

type GetMyUserResponse struct {
	User human.User
}

type SetPasswordRequest

type SetPasswordRequest struct {
	Claims      claims.Claims
	Identifier  identifier.Identifier
	NewPassword string
}

type SetPasswordResponse

type SetPasswordResponse struct {
}

type UpdateAllowedFieldsRequest

type UpdateAllowedFieldsRequest struct {
	Claims claims.Claims
	User   human.User
}

type UpdateAllowedFieldsResponse

type UpdateAllowedFieldsResponse struct {
	User human.User
}

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	Claims           claims.Claims
	ExistingPassword string
	NewPassword      string
}

type UpdatePasswordResponse

type UpdatePasswordResponse struct {
	User human.User
}

Directories

Path Synopsis
adaptor

Jump to

Keyboard shortcuts

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