diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-02 10:34:40 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-02 10:34:40 -0800 |
commit | 832b34964bd1732c7fe053c884bc78b6a0f09985 (patch) | |
tree | 61836fc178a3820cdd0a0e82c92023c0e49ef006 /samples/OAuthConsumer/GoogleAddressBook.aspx.cs | |
parent | cd7bed180abfe36ba4ae778d70cd7976de55907d (diff) | |
download | DotNetOpenAuth-832b34964bd1732c7fe053c884bc78b6a0f09985.zip DotNetOpenAuth-832b34964bd1732c7fe053c884bc78b6a0f09985.tar.gz DotNetOpenAuth-832b34964bd1732c7fe053c884bc78b6a0f09985.tar.bz2 |
Applied similar redirect fixes elsewhere.
Diffstat (limited to 'samples/OAuthConsumer/GoogleAddressBook.aspx.cs')
-rw-r--r-- | samples/OAuthConsumer/GoogleAddressBook.aspx.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs index 4eb4101..ad25536 100644 --- a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs +++ b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs @@ -2,6 +2,7 @@ using System; using System.Configuration; using System.Linq; + using System.Net; using System.Text; using System.Web; using System.Web.UI; @@ -32,7 +33,7 @@ } else if (this.AccessToken.Token == null) { // If we don't yet have access, immediately request it. Uri redirectUri = await google.RequestUserAuthorizationAsync(GoogleConsumer.Applications.Contacts); - this.Response.RedirectLocation = redirectUri.AbsoluteUri; + this.Response.Redirect(redirectUri.AbsoluteUri); } } } |