Table of Contents
OtpServiceConfig
Namespace: SimpleOTP.DependencyInjection
Configuration for the One-Time Password service.
public class OtpServiceConfig
Inheritance Object → OtpServiceConfig
Attributes NullableContextAttribute, NullableAttribute
Properties
Issuer
The name of the issuer.
public string Issuer { get; set; }
Property Value
IssuerDomain
The issuer domain.
public string IssuerDomain { get; set; }
Property Value
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
Period
The number of seconds between each OTP code.
public int Period { get; set; }
Property Value
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
ToleranceSpan
The tolerance span for the OTP codes validation.
public ToleranceSpanConfig ToleranceSpan { get; set; }
Property Value
CustomProperties
Custom properties to place in OTP URIs.
public Dictionary<string, string> CustomProperties { get; }
Property Value
Constructors
OtpServiceConfig()
public OtpServiceConfig()
©2025 Eugene Fox. Licensed under MIT license