summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
diff options
context:
space:
mode:
authorMicrosoft <aspnet@microsoft.com>2012-05-03 18:03:57 -0700
committerMicrosoft <aspnet@microsoft.com>2012-05-03 18:03:57 -0700
commit36e1af61367dd27ddde47652b9ca0619018ae87b (patch)
treee84985ab7b72e12ab483e273f0f64db47d8639c4 /src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
parent8e6ea95502ca34ef9ab9e071742a6d2e16c868ca (diff)
downloadDotNetOpenAuth-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/AuthenticationResult.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet/AuthenticationResult.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs b/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
index d5fb2d1..9e8492d 100644
--- a/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
+++ b/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
@@ -37,12 +37,24 @@ namespace DotNetOpenAuth.AspNet {
/// The exception.
/// </param>
public AuthenticationResult(Exception exception)
- : this(isSuccessful: false) {
- if (exception == null) {
+ : this(exception, provider: null) {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="AuthenticationResult"/> class.
+ /// </summary>
+ /// <param name="exception">The exception.</param>
+ /// <param name="provider">The provider name.</param>
+ public AuthenticationResult(Exception exception, string provider)
+ : this(isSuccessful: false)
+ {
+ if (exception == null)
+ {
throw new ArgumentNullException("exception");
}
this.Error = exception;
+ this.Provider = provider;
}
/// <summary>