Click or drag to resize

IAuthUIWaitForTwoFactorCode Method

Two Factor Authentication is required.

Namespace: KeeperSecurity.Authentication.Async
Assembly: KeeperSdk (in KeeperSdk.dll) Version: 1.0.5-beta11
Syntax
C#
Task<bool> WaitForTwoFactorCode(
	ITwoFactorChannelInfo[] channels,
	CancellationToken token
)

Parameters

channels  ITwoFactorChannelInfo
List of available 2FA channels.
token  CancellationToken
Cancellation token. Keeper SDK notifies the client passed 2FA.

Return Value

TaskBoolean
Awaitable boolean result. TrueTrue resume login, False cancel.
Remarks
Clients to display the list of available 2FA channels. When user picks one clients to check
  1. if channel implements push interface clients displays an button for each push action
  2. If channel implements 2FA duration interface clients may show 2FA expiration picker.
  3. If channel implements 2FA code interface clients displays 2FA code input.
When customer enters the code and click Next clients returns the code to the SDK.
See Also