diff options
author | Microsoft <aspnet@microsoft.com> | 2012-05-03 18:03:57 -0700 |
---|---|---|
committer | Microsoft <aspnet@microsoft.com> | 2012-05-03 18:03:57 -0700 |
commit | 36e1af61367dd27ddde47652b9ca0619018ae87b (patch) | |
tree | e84985ab7b72e12ab483e273f0f64db47d8639c4 /src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2Client.cs | |
parent | 8e6ea95502ca34ef9ab9e071742a6d2e16c868ca (diff) | |
download | DotNetOpenAuth-36e1af61367dd27ddde47652b9ca0619018ae87b.zip DotNetOpenAuth-36e1af61367dd27ddde47652b9ca0619018ae87b.tar.gz DotNetOpenAuth-36e1af61367dd27ddde47652b9ca0619018ae87b.tar.bz2 |
Use cookie to store OAuth token and set it as default mechanism. Fix an issue in Facebook account with encoded return url. Update Twitter urls. Catch exception in VerifyAuthentication and return as Failed.
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2Client.cs')
-rw-r--r-- | src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2Client.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2Client.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2Client.cs index cac4261..138fac2 100644 --- a/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2Client.cs +++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/OAuth2Client.cs @@ -21,11 +21,6 @@ namespace DotNetOpenAuth.AspNet.Clients { /// </summary> private readonly string providerName; - /// <summary> - /// The return url. - /// </summary> - private Uri returnUrl; - #endregion #region Constructors and Destructors @@ -71,8 +66,6 @@ namespace DotNetOpenAuth.AspNet.Clients { Requires.NotNull(context, "context"); Requires.NotNull(returnUrl, "returnUrl"); - this.returnUrl = returnUrl; - string redirectUrl = this.GetServiceLoginUrl(returnUrl).AbsoluteUri; context.Response.Redirect(redirectUrl, endResponse: true); } @@ -87,8 +80,7 @@ namespace DotNetOpenAuth.AspNet.Clients { /// An instance of <see cref="AuthenticationResult"/> containing authentication result. /// </returns> public AuthenticationResult VerifyAuthentication(HttpContextBase context) { - Requires.NotNull(this.returnUrl, "this.returnUrl"); - return VerifyAuthentication(context, this.returnUrl); + throw new InvalidOperationException(WebResources.OAuthRequireReturnUrl); } /// <summary> |