AzureCosmosDbEnableCompanyTwoFactorAuthentication Method

Enable the company's two-factor authentication. All accounts in the company will be required to use two-factor authentication.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task EnableCompanyTwoFactorAuthentication(
	CompanyDto company,
	UserSessionData enableBy,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Company to enable two-factor authentication
enableBy  UserSessionData
User enabling two-factor authentication
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Implements

IAzureCosmosDbEnableCompanyTwoFactorAuthentication(CompanyDto, UserSessionData, CancellationToken)

Exceptions

UnauthorizedAccessExceptionThrown if the user enableBy did not have the correct permissions
ArgumentNullExceptionThrown if company or enableBy was

See Also