diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-03-27 20:09:01 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-03-30 21:38:24 -0700 |
commit | 76356bc6aecda199446c8d66311339f6a7445ddb (patch) | |
tree | 31c265830d2230de72505144abdf6844780d8365 /samples/OpenIdOfflineProvider/MainWindow.xaml.cs | |
parent | 6cbab280a27cba2e3fe997f9b6d9d8b57cfbb4d5 (diff) | |
download | DotNetOpenAuth-76356bc6aecda199446c8d66311339f6a7445ddb.zip DotNetOpenAuth-76356bc6aecda199446c8d66311339f6a7445ddb.tar.gz DotNetOpenAuth-76356bc6aecda199446c8d66311339f6a7445ddb.tar.bz2 |
Added support in the offline Provider app to add trailing dots to identifier_select scenarios for testing.
Also added the Clear Log button (finally).
Diffstat (limited to 'samples/OpenIdOfflineProvider/MainWindow.xaml.cs')
-rw-r--r-- | samples/OpenIdOfflineProvider/MainWindow.xaml.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/samples/OpenIdOfflineProvider/MainWindow.xaml.cs b/samples/OpenIdOfflineProvider/MainWindow.xaml.cs index 8f04da3..bf88e78 100644 --- a/samples/OpenIdOfflineProvider/MainWindow.xaml.cs +++ b/samples/OpenIdOfflineProvider/MainWindow.xaml.cs @@ -117,7 +117,11 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider { switch (checkidRequestList.SelectedIndex) { case 0: if (authRequest.IsDirectedIdentity) { - authRequest.ClaimedIdentifier = new Uri(this.hostedProvider.UserIdentityPageBase, "directedidentity"); + if (directedIdentityTrailingPeriodsCheckbox.IsChecked.Value) { + authRequest.ClaimedIdentifier = this.hostedProvider.UserIdentityPageBase + "directedidentity."; + } else { + authRequest.ClaimedIdentifier = this.hostedProvider.UserIdentityPageBase + "directedidentity"; + } authRequest.LocalIdentifier = authRequest.ClaimedIdentifier; } authRequest.IsAuthenticated = true; @@ -169,5 +173,9 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider { MessageBox.Show(this, ex.Message, "Error while copying OP Identifier to the clipboard", MessageBoxButton.OK, MessageBoxImage.Error); } } + + private void Button_Click(object sender, RoutedEventArgs e) { + logBox.Clear(); + } } } |