Documentation ¶
Index ¶
- Constants
- Variables
- type Administrator
- type CheckPasswordRequest
- type CheckPasswordResponse
- type CreateRequest
- type CreateResponse
- type ForgotPasswordRequest
- type ForgotPasswordResponse
- type GetMyUserRequest
- type GetMyUserResponse
- type SetPasswordRequest
- type SetPasswordResponse
- type UpdateAllowedFieldsRequest
- type UpdateAllowedFieldsResponse
- type UpdatePasswordRequest
- type UpdatePasswordResponse
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 ClientAdminUserPermissions = []api.Permission{ UpdateAllowedFieldsService, CreateService, GetMyUserService, UpdatePasswordService, CheckPasswordService, }
View Source
var ClientUserPermissions = []api.Permission{ UpdateAllowedFieldsService, CreateService, GetMyUserService, UpdatePasswordService, CheckPasswordService, }
View Source
var CompanyAdminUserPermissions = []api.Permission{ UpdateAllowedFieldsService, CreateService, GetMyUserService, UpdatePasswordService, CheckPasswordService, }
View Source
var CompanyUserPermissions = []api.Permission{ UpdateAllowedFieldsService, CreateService, GetMyUserService, UpdatePasswordService, CheckPasswordService, }
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 CheckPasswordResponse ¶
type CheckPasswordResponse struct {
Result bool
}
type CreateResponse ¶
type ForgotPasswordRequest ¶
type ForgotPasswordRequest struct {
UsernameOrEmailAddress string
}
type ForgotPasswordResponse ¶
type ForgotPasswordResponse struct {
URLToken string
}
type GetMyUserRequest ¶
type GetMyUserResponse ¶
type SetPasswordRequest ¶
type SetPasswordRequest struct { Claims claims.Claims Identifier identifier.Identifier NewPassword string }
type SetPasswordResponse ¶
type SetPasswordResponse struct { }
type UpdatePasswordRequest ¶
type UpdatePasswordResponse ¶
Click to show internal directories.
Click to hide internal directories.