1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00
1
simpleotp.dependencyinjection.otpserviceconfig
Eugene Fox edited this page 2024-09-18 17:22:16 +03:00

OtpServiceConfig

Namespace: SimpleOTP.DependencyInjection

Configuration for the One-Time Password service.

public class OtpServiceConfig

Inheritance ObjectOtpServiceConfig
Attributes NullableContextAttribute, NullableAttribute

Properties

Issuer

The name of the issuer.

public string Issuer { get; set; }

Property Value

String

IssuerDomain

The issuer domain.

public string IssuerDomain { get; set; }

Property Value

String

Remarks:

IMPORTANT: Using this property will imply adherence to the Apple specification.

Algorithm

The algorithm to use.

public OtpAlgorithm Algorithm { get; set; }

Property Value

OtpAlgorithm

Digits

The number of digits in the OTP code.

public int Digits { get; set; }

Property Value

Int32

Period

The number of seconds between each OTP code.

public int Period { get; set; }

Property Value

Int32

Type

The type of One-Time Password to generate.

public OtpType Type { get; set; }

Property Value

OtpType

UriFormat

The format of OTP URIs.

public OtpUriFormat UriFormat { get; set; }

Property Value

OtpUriFormat

MinimalUri

Whether to use minimal URI formatting (only required, or altered properties are included), or full URI formatting.

public bool MinimalUri { get; set; }

Property Value

Boolean

ToleranceSpan

The tolerance span for the OTP codes validation.

public ToleranceSpanConfig ToleranceSpan { get; set; }

Property Value

ToleranceSpanConfig

CustomProperties

Custom properties to place in OTP URIs.

public Dictionary<string, string> CustomProperties { get; }

Property Value

Dictionary<String, String>

Constructors

OtpServiceConfig()

public OtpServiceConfig()