private async void Logout(object sender, EventArgs e) { clearText(); writeLine("Starting logout..."); var result = await _auth0Client.LogoutAsync(); accessToken = null; writeLine(result.ToString()); }
public async void Logout() { BrowserResultType browserResult = await client.LogoutAsync(); if (browserResult != BrowserResultType.Success) { throw new Exception(browserResult.ToString()); } SelectedEmail = ""; Hide(); Login(); }
private async void LogoutButton_Click(object sender, EventArgs e) { BrowserResultType browserResult = await client.LogoutAsync(); if (browserResult != BrowserResultType.Success) { resultTextBox.Text = browserResult.ToString(); return; } logoutButton.Visible = false; loginButton.Visible = true; resultTextBox.Text = ""; audienceTextBox.Text = ""; connectionNameComboBox.Text = ""; }
private async void LogoutButton_Click(object sender, RoutedEventArgs e) { BrowserResultType browserResult = await client.LogoutAsync(); if (browserResult != BrowserResultType.Success) { resultTextBox.Text = browserResult.ToString(); return; } logoutButton.Visibility = Visibility.Collapsed; loginButton.Visibility = Visibility.Visible; audienceTextBox.Text = ""; resultTextBox.Text = ""; connectionNameComboBox.ItemsSource = _connectionNames; }
private void logout_Click(object sender, EventArgs e) { RecordUndoEvent("Logout"); client.LogoutAsync(); //logged_In = false; Axis.Properties.Settings.Default.LoggedIn = false; Auth.RaiseEvent(false); this.Message = "Logged Out"; log.Add("Logged out of Axis at " + System.DateTime.Now.ToShortDateString()); // Porbmen seems to be that this does not expire the specific components this.ExpireSolution(true); }
public void authLogout() { // Clear login infos. UserName = ""; m.localSettings.Values["UserPwd"] = ""; Auth0ClientOptions clientOptions = new Auth0ClientOptions { Domain = Params.auth0Domain, ClientId = Params.auth0ClientId }; clientOptions.PostLogoutRedirectUri = clientOptions.RedirectUri; var auth0 = new Auth0Client(clientOptions); auth0.LogoutAsync(); m.localSettings.Values["Loggined"] = false; OnPropertyChanged("Loggined"); }
private async void LogoutButton_Click(object sender, RoutedEventArgs e) { BrowserResultType browserResult = await client.LogoutAsync(); if (browserResult != BrowserResultType.Success) { resultTextBox.Text = browserResult.ToString(); return; } // Hide logout button logoutButton.Visibility = Visibility.Collapsed; // Display login button loginButton.Visibility = Visibility.Visible; // Clean up form resultTextBox.Text = ""; connectionNameAutoSuggestBox.ItemsSource = _connectionNames; audienceTextBox.Text = ""; }
public async Task <bool> Logout() { try { BrowserResultType browserResult = await client.LogoutAsync(); if (browserResult != BrowserResultType.Success) { MessageBox.Show(browserResult.ToString(), "Logout error:"); return(false); } this.User = new MODELS.User(); return(true); } catch (Exception e) { Logger.Write("LOGIN | Error occurred while trying to logout : " + Environment.NewLine + e.ToString()); return(false); } }
protected async Task <BrowserResultType> Logout() { return(await client.LogoutAsync()); }
public Task LogoutRequest() { return(_auth0Client.LogoutAsync()); }
private async void Logout_Click(object sender, RoutedEventArgs e) { await auth0.LogoutAsync(); MessageBox.Show("Logout successful!"); }
public Task LogoutAsync() { return(_client.LogoutAsync()); }
public Task LogOut() => _client.LogoutAsync();
private async void LogoutButtonOnClick(object sender, EventArgs e) { await _client.LogoutAsync(); }
private async void Logout_Click(object sender, RoutedEventArgs e) { await auth0.LogoutAsync(); await MessageHelpers.ShowDialogAsync("Logout successful!"); }
public async Task <IdentityModel.OidcClient.Browser.BrowserResultType> LogoutAsync() { return(await client.LogoutAsync()); }
private async void LogoutButton_OnClick(object sender, RoutedEventArgs e) { await _auth0Client.LogoutAsync(); }
private async Task <BrowserResultType> LogoutAsync() { return(await _auth0Client.LogoutAsync()); }
private async void LogoutButtonOnTouchUpInside(object sender, EventArgs e) { await _client.LogoutAsync(); }
private async void button2_Click(object sender, EventArgs e) { await _auth0Client.LogoutAsync(); }