summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-14 00:12:14 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-14 00:12:14 -0700
commitfbad4ad11c853ae36c02267910951d71fac83639 (patch)
tree0dcda1f6ce499ed969354239bf95178dd64bec7d
parent2433693328ab3d0176bfd17d81a1b4ecd1602584 (diff)
downloadDotNetOpenAuth-fbad4ad11c853ae36c02267910951d71fac83639.zip
DotNetOpenAuth-fbad4ad11c853ae36c02267910951d71fac83639.tar.gz
DotNetOpenAuth-fbad4ad11c853ae36c02267910951d71fac83639.tar.bz2
Worked around WinForms WebBrowser bug.
-rw-r--r--samples/OAuthConsumerWpf/Authorize2.xaml.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/OAuthConsumerWpf/Authorize2.xaml.cs b/samples/OAuthConsumerWpf/Authorize2.xaml.cs
index d407a51..e257315 100644
--- a/samples/OAuthConsumerWpf/Authorize2.xaml.cs
+++ b/samples/OAuthConsumerWpf/Authorize2.xaml.cs
@@ -29,7 +29,8 @@
this.client = client;
this.Authorization = new AuthorizationState();
- this.webBrowser.Navigate(this.client.RequestUserAuthorization(this.Authorization));
+ Uri authorizationUrl = this.client.RequestUserAuthorization(this.Authorization);
+ this.webBrowser.Navigate(authorizationUrl.AbsoluteUri); // use AbsoluteUri to workaround bug in WebBrowser that calls Uri.ToString instead of Uri.AbsoluteUri leading to escaping errors.
}
public IAuthorizationState Authorization { get; set; }