double_auth

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveDoubleAuthMethod

func RemoveDoubleAuthMethod(methodToRemove string, ownerId string) error

Types

type ActivateDoubleAuthTierResponse added in v2.1.0

type ActivateDoubleAuthTierResponse struct {
	DoubleAuth model.DoubleAuth
	Code       int
	Err        error
}

func ActivateDoubleAuthTier added in v2.1.0

func ActivateDoubleAuthTier(ownerId string) ActivateDoubleAuthTierResponse

type AddTrustDeviceResponse

type AddTrustDeviceResponse struct {
	Patient *model.Patient
	Doctor  *model.Doctor
	Code    int
	Err     error
}

func AddTrustDevice

func AddTrustDevice(id_device string, id_user string) AddTrustDeviceResponse

type CreateDeviceConnectInput

type CreateDeviceConnectInput struct {
	DeviceType string `json:"device_type"`
	Browser    string `json:"browser"`
	Ip         string `json:"ip"`
	City       string `json:"city"`
	Country    string `json:"country"`
	Date       int    `json:"date"`
}

type CreateDeviceConnectResponse

type CreateDeviceConnectResponse struct {
	DeviceConnect model.DeviceConnect
	Code          int
	Err           error
}

func CreateDeviceConnect

func CreateDeviceConnect(input CreateDeviceConnectInput, ownerId string) CreateDeviceConnectResponse

type CreateDoubleAuthInput

type CreateDoubleAuthInput struct {
	Methods string `json:"method_2fa"`
}

type CreateDoubleAuthResponse

type CreateDoubleAuthResponse struct {
	DoubleAuth model.DoubleAuth
	Code       int
	Err        error
}

func CreateDoubleAuthEmail

func CreateDoubleAuthEmail(input CreateDoubleAuthInput, ownerId string) CreateDoubleAuthResponse

type CreateDoubleAuthTierResponse

type CreateDoubleAuthTierResponse struct {
	TotpInfo TotpInfo
	Code     int
	Err      error
}

func CreateDoubleAuthAppTier

func CreateDoubleAuthAppTier(ownerId string) CreateDoubleAuthTierResponse

type CreateDoubleMobileInput

type CreateDoubleMobileInput struct {
	Methods     string `json:"method_2fa"`
	TrustDevice string `json:"trusted_device_id"`
}

type CreateDoubleMobileResponse

type CreateDoubleMobileResponse struct {
	DoubleAuth model.DoubleAuth
	Patient    model.Patient
	Code       int
	Err        error
}

func CreateDoubleAuthMobile

func CreateDoubleAuthMobile(input CreateDoubleMobileInput, ownerId string) CreateDoubleMobileResponse

type DeleteDeviceConnectResponse

type DeleteDeviceConnectResponse struct {
	Deleted bool
	Code    int
	Err     error
}

func DeleteDeviceConnect

func DeleteDeviceConnect(DeviceId string, ownerId string) DeleteDeviceConnectResponse

type GetDeviceConnectByIdResponse

type GetDeviceConnectByIdResponse struct {
	DeviceConnect model.DeviceConnect
	Code          int
	Err           error
}

func GetDeviceConnectById

func GetDeviceConnectById(id string) GetDeviceConnectByIdResponse

func GetTrustDeviceConnectById

func GetTrustDeviceConnectById(id string) GetDeviceConnectByIdResponse

type GetDevicesConnectResponse

type GetDevicesConnectResponse struct {
	DevicesConnect []model.DeviceConnect
	Code           int
	Err            error
}

func GetDeviceConnect

func GetDeviceConnect(ownerId string, page int, size int) GetDevicesConnectResponse

type GetDoubleAuthByIdResponse

type GetDoubleAuthByIdResponse struct {
	DoubleAuth model.DoubleAuth
	Code       int
	Err        error
}

func GetDoubleAuthById

func GetDoubleAuthById(ownerId string) GetDoubleAuthByIdResponse

type GetSecretResponse added in v2.1.0

type GetSecretResponse struct {
	Secret string
	Code   int
	Err    error
}

func GetSecretThirdParty added in v2.0.10

func GetSecretThirdParty(ownerID string) GetSecretResponse

type GetTrustDeviceConnectByIdResponse

type GetTrustDeviceConnectByIdResponse struct {
	DeviceConnect model.DeviceConnect
	Code          int
	Err           error
}

type GetTrustDevicesConnectResponse

type GetTrustDevicesConnectResponse struct {
	DevicesConnect []model.DeviceConnect
	Code           int
	Err            error
}

func GetTrustDeviceConnect

func GetTrustDeviceConnect(id_user string) GetTrustDevicesConnectResponse

type RemoveTrustDeviceResponse

type RemoveTrustDeviceResponse struct {
	Patient model.Patient
	Doctor  model.Doctor
	Code    int
	Err     error
}

func RemoveTrustDevice

func RemoveTrustDevice(id_device string, id_user string) RemoveTrustDeviceResponse

type TotpInfo added in v2.1.0

type TotpInfo struct {
	Secret string
	Url    string
}

type UpdateDeviceConnectInput added in v2.0.11

type UpdateDeviceConnectInput struct {
	DeviceType string `json:"device_type"`
	Browser    string `json:"browser"`
	Ip         string `json:"ip_address"`
	City       string `json:"city"`
	Country    string `json:"country"`
	Date       int    `json:"date"`
}

type UpdateDeviceConnectResponse added in v2.0.11

type UpdateDeviceConnectResponse struct {
	DeviceConnect model.DeviceConnect
	Code          int
	Err           error
}

func UpdateDeviceConnect added in v2.0.11

func UpdateDeviceConnect(input UpdateDeviceConnectInput, deviceId string) UpdateDeviceConnectResponse

type UpdateDoubleAuthInput

type UpdateDoubleAuthInput struct {
	Methods         string `json:"method_2fa"`
	Secret          string `json:"secret"`
	Code            string `json:"code"`
	TrustedDeviceId string `json:"trusted_device_id"`
}

type UpdateDoubleAuthResponse

type UpdateDoubleAuthResponse struct {
	DoubleAuth model.DoubleAuth
	Patient    model.Patient
	Code       int
	Err        error
}

func UpdateDoubleAuth

func UpdateDoubleAuth(input UpdateDoubleAuthInput, ownerId string) UpdateDoubleAuthResponse

Jump to

Keyboard shortcuts

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