summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumerWpf/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-02 21:42:03 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-02 21:42:03 -0800
commit5fe9455f7a2ea615cf98e751179c469ebada9358 (patch)
treee4fa10ebaf57dd26a4f8971e9cf4a8cbcdcb8188 /samples/OAuthConsumerWpf/MainWindow.xaml.cs
parent36cadbb1b9bf9c6a9a97b3679f40ea155ce0a615 (diff)
downloadDotNetOpenAuth-5fe9455f7a2ea615cf98e751179c469ebada9358.zip
DotNetOpenAuth-5fe9455f7a2ea615cf98e751179c469ebada9358.tar.gz
DotNetOpenAuth-5fe9455f7a2ea615cf98e751179c469ebada9358.tar.bz2
Fixed up WebAPI sample so it works with anonymous clients.
Diffstat (limited to 'samples/OAuthConsumerWpf/MainWindow.xaml.cs')
-rw-r--r--samples/OAuthConsumerWpf/MainWindow.xaml.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/OAuthConsumerWpf/MainWindow.xaml.cs b/samples/OAuthConsumerWpf/MainWindow.xaml.cs
index 5d94920..efe7673 100644
--- a/samples/OAuthConsumerWpf/MainWindow.xaml.cs
+++ b/samples/OAuthConsumerWpf/MainWindow.xaml.cs
@@ -176,6 +176,7 @@
authorizePopup.Authorization.Scope.AddRange(OAuthUtilities.SplitScopes(this.oauth2ScopeBox.Text));
authorizePopup.Authorization.Callback = new Uri("http://www.microsoft.com/en-us/default.aspx");
authorizePopup.Owner = this;
+ authorizePopup.ClientAuthorizationView.RequestImplicitGrant = flowBox.SelectedIndex == 1;
bool? result = authorizePopup.ShowDialog();
if (result.HasValue && result.Value) {
var requestUri = new UriBuilder(this.oauth2ResourceUrlBox.Text);