protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) { if (!WebAuthenticationBroker.AuthenticationInProgress || !_authenticationFinished) { return; } _authenticationStarted = false; _authenticationFinished = false; WebAuthenticationBroker.OnAuthenticationFinished(_responseData, WebAuthenticationStatus.Success, _responseErrorDetail); }