summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-02-26 22:55:18 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-02-26 22:55:18 -0800
commit6204dcf07f31b78478bc1ddb55a6ca9027617b67 (patch)
tree2b92fff13f9e253c9504e73b677ec61b352d9f38 /samples/OAuthConsumer/SignInWithTwitter.aspx.cs
parent38a1162c5cbaea035e655dc9accd92f9de5019ed (diff)
downloadDotNetOpenAuth-6204dcf07f31b78478bc1ddb55a6ca9027617b67.zip
DotNetOpenAuth-6204dcf07f31b78478bc1ddb55a6ca9027617b67.tar.gz
DotNetOpenAuth-6204dcf07f31b78478bc1ddb55a6ca9027617b67.tar.bz2
Fixes some OAuth 1 build breaks.
Diffstat (limited to 'samples/OAuthConsumer/SignInWithTwitter.aspx.cs')
-rw-r--r--samples/OAuthConsumer/SignInWithTwitter.aspx.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/OAuthConsumer/SignInWithTwitter.aspx.cs b/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
index f90d557..d34c0a5 100644
--- a/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
+++ b/samples/OAuthConsumer/SignInWithTwitter.aspx.cs
@@ -19,7 +19,7 @@
this.MultiView1.ActiveViewIndex = 1;
if (!IsPostBack) {
- var tuple = await TwitterConsumer.TryFinishSignInWithTwitterAsync(Response.ClientDisconnectedToken);
+ var tuple = await TwitterConsumer.TryFinishSignInWithTwitterAsync();
if (tuple != null) {
string screenName = tuple.Item1;
int userId = tuple.Item2;
@@ -35,8 +35,8 @@
}
protected async void signInButton_Click(object sender, ImageClickEventArgs e) {
- var response = await TwitterConsumer.StartSignInWithTwitterAsync(this.forceLoginCheckbox.Checked, Response.ClientDisconnectedToken);
- await response.SendAsync();
+ Uri redirectUrl = await TwitterConsumer.StartSignInWithTwitterAsync(this.forceLoginCheckbox.Checked, Response.ClientDisconnectedToken);
+ this.Response.RedirectLocation = redirectUrl.AbsoluteUri;
}
}
} \ No newline at end of file