示例#1
0
        private async void Logout(object sender, EventArgs e)
        {
            clearText();
            writeLine("Starting logout...");

            var result = await _auth0Client.LogoutAsync();

            accessToken = null;
            writeLine(result.ToString());
        }
示例#2
0
        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 = "";
        }
示例#4
0
        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;
        }
示例#5
0
        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);
        }
示例#6
0
        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");
        }
示例#7
0
        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 = "";
        }
示例#8
0
        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);
            }
        }
示例#9
0
 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();
示例#14
0
 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!");
        }
示例#16
0
 public async Task <IdentityModel.OidcClient.Browser.BrowserResultType> LogoutAsync()
 {
     return(await client.LogoutAsync());
 }
示例#17
0
 private async void LogoutButton_OnClick(object sender, RoutedEventArgs e)
 {
     await _auth0Client.LogoutAsync();
 }
示例#18
0
 private async Task <BrowserResultType> LogoutAsync()
 {
     return(await _auth0Client.LogoutAsync());
 }
示例#19
0
 private async void LogoutButtonOnTouchUpInside(object sender, EventArgs e)
 {
     await _client.LogoutAsync();
 }
示例#20
0
 private async void button2_Click(object sender, EventArgs e)
 {
     await _auth0Client.LogoutAsync();
 }