public TwoFactorPage(bool?authingWithSso = false, AppOptions appOptions = null, string orgIdentifier = null) { InitializeComponent(); SetActivityIndicator(); _authingWithSso = authingWithSso ?? false; _appOptions = appOptions; _orgIdentifier = orgIdentifier; _storageService = ServiceContainer.Resolve <IStorageService>("storageService"); _broadcasterService = ServiceContainer.Resolve <IBroadcasterService>("broadcasterService"); _messagingService = ServiceContainer.Resolve <IMessagingService>("messagingService"); _vaultTimeoutService = ServiceContainer.Resolve <IVaultTimeoutService>("vaultTimeoutService"); _vm = BindingContext as TwoFactorPageViewModel; _vm.Page = this; _vm.StartSetPasswordAction = () => Device.BeginInvokeOnMainThread(async() => await StartSetPasswordAsync()); _vm.TwoFactorAuthSuccessAction = () => Device.BeginInvokeOnMainThread(async() => await TwoFactorAuthSuccessAsync()); _vm.CloseAction = async() => await Navigation.PopModalAsync(); DuoWebView = _duoWebView; if (Device.RuntimePlatform == Device.Android) { ToolbarItems.Remove(_cancelItem); } }
public TwoFactorPage() { InitializeComponent(); SetActivityIndicator(); _broadcasterService = ServiceContainer.Resolve <IBroadcasterService>("broadcasterService"); _messagingService = ServiceContainer.Resolve <IMessagingService>("messagingService"); _vm = BindingContext as TwoFactorPageViewModel; _vm.Page = this; DuoWebView = _duoWebView; }
public TwoFactorPage() { InitializeComponent(); SetActivityIndicator(); _broadcasterService = ServiceContainer.Resolve <IBroadcasterService>("broadcasterService"); _messagingService = ServiceContainer.Resolve <IMessagingService>("messagingService"); _vm = BindingContext as TwoFactorPageViewModel; _vm.Page = this; DuoWebView = _duoWebView; if (Device.RuntimePlatform == Device.Android) { ToolbarItems.Remove(_cancelItem); } }
public TwoFactorPage(AppOptions appOptions = null) { InitializeComponent(); SetActivityIndicator(); _appOptions = appOptions; _storageService = ServiceContainer.Resolve <IStorageService>("storageService"); _broadcasterService = ServiceContainer.Resolve <IBroadcasterService>("broadcasterService"); _messagingService = ServiceContainer.Resolve <IMessagingService>("messagingService"); _vm = BindingContext as TwoFactorPageViewModel; _vm.Page = this; _vm.TwoFactorAction = () => Device.BeginInvokeOnMainThread(async() => await TwoFactorAuthAsync()); DuoWebView = _duoWebView; if (Device.RuntimePlatform == Device.Android) { ToolbarItems.Remove(_cancelItem); } }