diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-02-26 22:55:18 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-02-26 22:55:18 -0800 |
commit | 6204dcf07f31b78478bc1ddb55a6ca9027617b67 (patch) | |
tree | 2b92fff13f9e253c9504e73b677ec61b352d9f38 /samples/OAuthConsumer/SignInWithTwitter.aspx.cs | |
parent | 38a1162c5cbaea035e655dc9accd92f9de5019ed (diff) | |
download | DotNetOpenAuth-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.cs | 6 |
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 |