Class TwilioVerifyOptions
- Namespace
- NuvTools.Security.Verification.Twilio
- Assembly
- NuvTools.Security.Verification.Twilio.dll
Configuration for phone verification through Twilio Verify.
public sealed class TwilioVerifyOptions
- Inheritance
-
TwilioVerifyOptions
- Inherited Members
Remarks
Twilio authenticates the calls with an API key (ApiKeySid and ApiKeySecret), and the Verify service (ServiceSid) holds the message template, the code length and its lifetime, set once at Twilio.
Fields
SectionName
Configuration section name this options class binds to.
public const string SectionName = "TwilioVerify"
Field Value
Properties
ApiKeySecret
Secret of the API key, or the account's auth token. Server-side only.
public string ApiKeySecret { get; set; }
Property Value
ApiKeySid
SID of the API key (SK…), or of the account when its auth token is used instead.
public string ApiKeySid { get; set; }
Property Value
BaseUrl
The Verify API, ending with a slash.
public string BaseUrl { get; set; }
Property Value
IsConfigured
Whether all three credentials are set. Without them every call answers unavailable.
public bool IsConfigured { get; }
Property Value
ServiceSid
SID of the Verify service (VA…) the codes are sent through.
public string ServiceSid { get; set; }