/// <inheritdoc/> public Task <IFactor> AddFactorAsync(string userId, AddSecurityQuestionFactorOptions securityQuestionFactorOptions, CancellationToken cancellationToken = default(CancellationToken)) { if (securityQuestionFactorOptions == null) { throw new ArgumentNullException(nameof(securityQuestionFactorOptions)); } var profile = new SecurityQuestionFactorProfile { Question = securityQuestionFactorOptions.Question, Answer = securityQuestionFactorOptions.Answer, }; var factor = new SecurityQuestionFactor { FactorType = FactorType.Question, Provider = FactorProvider.Okta, Profile = profile, }; return(AddFactorAsync(factor, userId, cancellationToken: cancellationToken)); }
public Task <IFactor> AddFactorAsync(AddSecurityQuestionFactorOptions securityQuestionFactorOptions, CancellationToken cancellationToken = default(CancellationToken)) => GetClient().UserFactors.AddFactorAsync(Id, securityQuestionFactorOptions, cancellationToken);