namespace EnvelopeGenerator.Application.Common.Configurations; /// /// /// public class AuthenticatorParams { /// /// Default value is 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890123456789012345678901234567890123456789' /// public string CharPool { get; init; } = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890123456789012345678901234567890123456789"; //TODO: Increase the DefaultTotpSecretKeyLength (e.g. to 32) but make sure that the QR code is generated correctly and can be scanned by the authenticator. /// /// Default value is 20 /// public int DefaultTotpSecretKeyLength { get; init; } = 20; /// /// Default value is /// public string TotpIssuer { get; init; } = "signFlow"; /// /// 0 is user email, 1 is secret key and 2 is issuer. /// public string TotpUrlFormat { get; init; } = "otpauth://totp/{0}?secret={1}&issuer={2}"; /// /// Default value is 20. /// public int TotpQRPixelsPerModule { get; init; } = 20; }