diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-04 14:32:02 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-04 14:32:02 -0800 |
commit | 9c7bd4ad8a4de0147ad93d00813eb4874e031477 (patch) | |
tree | cec8a43d19c534c70ca706d5da4a6aac6ef2ac3f /samples/OAuthClient | |
parent | 36bbbea5002c889558a67c380e46dff668251b25 (diff) | |
download | DotNetOpenAuth-9c7bd4ad8a4de0147ad93d00813eb4874e031477.zip DotNetOpenAuth-9c7bd4ad8a4de0147ad93d00813eb4874e031477.tar.gz DotNetOpenAuth-9c7bd4ad8a4de0147ad93d00813eb4874e031477.tar.bz2 |
A few more fixes.
Diffstat (limited to 'samples/OAuthClient')
-rw-r--r-- | samples/OAuthClient/Facebook.aspx.cs | 1 | ||||
-rw-r--r-- | samples/OAuthClient/SampleWcf2.aspx.cs | 1 | ||||
-rw-r--r-- | samples/OAuthClient/WindowsLive.aspx.cs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/samples/OAuthClient/Facebook.aspx.cs b/samples/OAuthClient/Facebook.aspx.cs index d174a8f..3a9cf14 100644 --- a/samples/OAuthClient/Facebook.aspx.cs +++ b/samples/OAuthClient/Facebook.aspx.cs @@ -20,6 +20,7 @@ // Kick off authorization request var request = await client.PrepareRequestUserAuthorizationAsync(cancellationToken: Response.ClientDisconnectedToken); await request.SendAsync(new HttpContextWrapper(Context), Response.ClientDisconnectedToken); + this.Context.Response.End(); } else { var request = WebRequest.Create("https://graph.facebook.com/me?access_token=" + Uri.EscapeDataString(authorization.AccessToken)); using (var response = request.GetResponse()) { diff --git a/samples/OAuthClient/SampleWcf2.aspx.cs b/samples/OAuthClient/SampleWcf2.aspx.cs index e1b778b..af12a26 100644 --- a/samples/OAuthClient/SampleWcf2.aspx.cs +++ b/samples/OAuthClient/SampleWcf2.aspx.cs @@ -83,6 +83,7 @@ var request = await Client.PrepareRequestUserAuthorizationAsync(scopes, cancellationToken: Response.ClientDisconnectedToken); await request.SendAsync(); + this.Context.Response.End(); } protected async void getNameButton_Click(object sender, EventArgs e) { diff --git a/samples/OAuthClient/WindowsLive.aspx.cs b/samples/OAuthClient/WindowsLive.aspx.cs index cd7f5b4..23566c5 100644 --- a/samples/OAuthClient/WindowsLive.aspx.cs +++ b/samples/OAuthClient/WindowsLive.aspx.cs @@ -31,6 +31,7 @@ // Kick off authorization request var request = await client.PrepareRequestUserAuthorizationAsync(scopes: new[] { WindowsLiveClient.Scopes.Basic }); // this scope isn't even required just to log in await request.SendAsync(new HttpContextWrapper(this.Context), Response.ClientDisconnectedToken); + this.Context.Response.End(); } else { var request = WebRequest.Create("https://apis.live.net/v5.0/me?access_token=" + Uri.EscapeDataString(authorization.AccessToken)); |