summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-02 10:34:40 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-02 10:34:40 -0800
commit832b34964bd1732c7fe053c884bc78b6a0f09985 (patch)
tree61836fc178a3820cdd0a0e82c92023c0e49ef006 /samples/OAuthConsumer/SignInWithTwitter.aspx.cs
parentcd7bed180abfe36ba4ae778d70cd7976de55907d (diff)
downloadDotNetOpenAuth-832b34964bd1732c7fe053c884bc78b6a0f09985.zip
DotNetOpenAuth-832b34964bd1732c7fe053c884bc78b6a0f09985.tar.gz
DotNetOpenAuth-832b34964bd1732c7fe053c884bc78b6a0f09985.tar.bz2
Applied similar redirect fixes elsewhere.
Diffstat (limited to 'samples/OAuthConsumer/SignInWithTwitter.aspx.cs')
-rw-r--r--samples/OAuthConsumer/SignInWithTwitter.aspx.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/OAuthConsumer/SignInWithTwitter.aspx.cs b/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
index d34c0a5..93462d5 100644
--- a/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
+++ b/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
@@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
+ using System.Net;
using System.Web;
using System.Web.Security;
using System.Web.UI;
@@ -35,8 +36,8 @@
}
protected async void signInButton_Click(object sender, ImageClickEventArgs e) {
- Uri redirectUrl = await TwitterConsumer.StartSignInWithTwitterAsync(this.forceLoginCheckbox.Checked, Response.ClientDisconnectedToken);
- this.Response.RedirectLocation = redirectUrl.AbsoluteUri;
+ Uri redirectUri = await TwitterConsumer.StartSignInWithTwitterAsync(this.forceLoginCheckbox.Checked, Response.ClientDisconnectedToken);
+ this.Response.Redirect(redirectUri.AbsoluteUri);
}
}
} \ No newline at end of file