Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EnvVerifyEmailURL is the environment variable for the verify email URL EnvVerifyEmailURL = "URU_FRAMEWORKS_SECURE_NOTES_VERIFY_EMAIL_URL" // EnvResetPasswordURL is the environment variable for the reset password URL EnvResetPasswordURL = "URU_FRAMEWORKS_SECURE_NOTES_RESET_PASSWORD_URL" // EnvMinimumPasswordLength is the environment for the minimum password length EnvMinimumPasswordLength = "URU_FRAMEWORKS_SECURE_NOTES_MINIMUM_PASSWORD_LENGTH" // EnvMinimumPasswordSpecialCount is the environment for the minimum password special characters count EnvMinimumPasswordSpecialCount = "URU_FRAMEWORKS_SECURE_NOTES_MINIMUM_PASSWORD_SPECIAL_COUNT" // EnvMinimumPasswordNumbersCount is the environment for the minimum password numbers characters count EnvMinimumPasswordNumbersCount = "URU_FRAMEWORKS_SECURE_NOTES_MINIMUM_PASSWORD_NUMBERS_COUNT" // EnvMinimumPasswordCapsCount is the environment for the minimum password caps characters count EnvMinimumPasswordCapsCount = "URU_FRAMEWORKS_SECURE_NOTES_MINIMUM_PASSWORD_CAPS_COUNT" // EnvMaximumFailedAttemptsCount is the environment for the maximum failed attempts count EnvMaximumFailedAttemptsCount = "URU_FRAMEWORKS_SECURE_NOTES_MAXIMUM_FAILED_ATTEMPTS_COUNT" // EnvMaximumFailedAttemptsPeriod is the environment for the maximum failed attempts period EnvMaximumFailedAttemptsPeriod = "URU_FRAMEWORKS_SECURE_NOTES_MAXIMUM_FAILED_ATTEMPTS_PERIOD" // EnvMinimumAge is the environment for the minimum age EnvMinimumAge = "URU_FRAMEWORKS_SECURE_NOTES_MINIMUM_AGE" // EnvMaximumAge is the environment for the maximum age EnvMaximumAge = "URU_FRAMEWORKS_SECURE_NOTES_MAXIMUM_AGE" // EnvTwoFactorAuthenticationEmailCodeDuration is the environment for the 2FA email code duration EnvTwoFactorAuthenticationEmailCodeDuration = "URU_FRAMEWORKS_SECURE_NOTES_2FA_EMAIL_CODE_DURATION" // EnvTwoFactorAuthenticationEmailCodeLength is the environment for the 2FA email code length EnvTwoFactorAuthenticationEmailCodeLength = "URU_FRAMEWORKS_SECURE_NOTES_2FA_EMAIL_CODE_LENGTH" // EmailCode2FAMethod is the 2FA email code method EmailCode2FAMethod = "email-code" // TOTPCode2FAMethod is the 2FA TOTP code method TOTPCode2FAMethod = "totp-code" // RecoveryCode2FAMethod is the 2FA recovery code method RecoveryCode2FAMethod = "recovery-code" )
Variables ¶
View Source
var ( // VerifyEmailURL is the verify email URL VerifyEmailURL string // ResetPasswordURL is the reset password URL ResetPasswordURL string // MinimumPasswordLength is the minimum password length MinimumPasswordLength int // MinimumPasswordSpecialCount is the minimum password special characters count MinimumPasswordSpecialCount int // MinimumPasswordNumbersCount is the minimum password numbers characters count MinimumPasswordNumbersCount int // MinimumPasswordCapsCount is the minimum password caps characters count MinimumPasswordCapsCount int // PasswordOptions is the password options PasswordOptions *govalidatormappervalidations.PasswordOptions // MinimumAge is the minimum age MinimumAge int // MaximumAge is the maximum age MaximumAge int // BirthdateOptions is the birthdate options BirthdateOptions *govalidatormappervalidations.BirthdateOptions // MaximumFailedAttemptsCount is the maximum failed attempts count MaximumFailedAttemptsCount int // MaximumFailedAttemptsPeriod is the maximum failed attempts period MaximumFailedAttemptsPeriod time.Duration // MaximumFailedAttemptsPeriodSeconds is the maximum failed attempts period in seconds MaximumFailedAttemptsPeriodSeconds int64 // TwoFactorAuthenticationEmailCodeDuration is the 2FA email code duration TwoFactorAuthenticationEmailCodeDuration time.Duration // TwoFactorAuthenticationEmailCodeLength is the 2FA email code length TwoFactorAuthenticationEmailCodeLength int // Valid2FAMethods are the valid 2FA methods Valid2FAMethods = []string{ EmailCode2FAMethod, TOTPCode2FAMethod, RecoveryCode2FAMethod, } )
View Source
var ( // InDevelopment is the response when a request is made to an endpoint that is not implemented yet InDevelopment = errors.New("this endpoint is not implemented yet") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.