/// <summary> /// Button click event for 'Update' button. This method refers to /// ServerConfigurationManager class --> UpdateAppSettings() method in 'org.wso2.identity.sdk.oidc' library /// and save user given data to 'app.config' file. /// </summary> private void UpdateButton_Click(object sender, RoutedEventArgs e) { ServerConfigurationManager.UpdateAppSettings(Constants.ClientId, this.idTxt.Text); ServerConfigurationManager.UpdateAppSettings(Constants.ClientSecret, this.clientSecretTxt.Password); ServerConfigurationManager.UpdateAppSettings(Constants.AuthorizationEndpoint, this.authenticationTxt.Text); ServerConfigurationManager.UpdateAppSettings(Constants.TokenEndpoint, this.tokenTxt.Text); ServerConfigurationManager.UpdateAppSettings(Constants.UserInfoEndpoint, this.userinfoTxt.Text); ServerConfigurationManager.UpdateAppSettings(Constants.LogoutEndpoint, this.logoutTxt.Text); ServerConfigurationManager.UpdateAppSettings(Constants.RedirectURI, this.callbackTxt.Text); ServerConfigurationManager.UpdateAppSettings(Constants.PostLogoutRedirectURI, this.postLogoutTxt.Text); if (SSLcheckbox.IsChecked == true) { MessageBox.Show("Successfully Updated !", "Information"); this.Close(); } else { MessageBox.Show("Please enable ssl veification checkbox to establish trust relationship for the " + "SSL/TLS secure channel.", "Information"); this.Show(); } }