summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-26 11:19:06 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-26 11:19:06 -0700
commit3d37ff45cab6838d80b22e6b782a0b9b4c2f4aeb (patch)
treec15816c3d7f6e74334553f2ff98605ce1c22c538 /src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
parent5e9014f36b2d53b8e419918675df636540ea24e2 (diff)
parente6f7409f4caceb7bc2a5b4ddbcb1a4097af340f2 (diff)
downloadDotNetOpenAuth-3d37ff45cab6838d80b22e6b782a0b9b4c2f4aeb.zip
DotNetOpenAuth-3d37ff45cab6838d80b22e6b782a0b9b4c2f4aeb.tar.gz
DotNetOpenAuth-3d37ff45cab6838d80b22e6b782a0b9b4c2f4aeb.tar.bz2
Move to HttpClient throughout library.
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/AuthenticationResult.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet/AuthenticationResult.cs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs b/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
index 9e8492d..4493288 100644
--- a/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
+++ b/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
@@ -9,6 +9,7 @@ namespace DotNetOpenAuth.AspNet {
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using DotNetOpenAuth.Messaging;
+ using System.Collections.Specialized;
/// <summary>
/// Represents the result of OAuth or OpenID authentication.
@@ -46,10 +47,8 @@ namespace DotNetOpenAuth.AspNet {
/// <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)
- {
+ : this(isSuccessful: false) {
+ if (exception == null) {
throw new ArgumentNullException("exception");
}
@@ -76,15 +75,12 @@ namespace DotNetOpenAuth.AspNet {
/// The extra data.
/// </param>
public AuthenticationResult(
- bool isSuccessful, string provider, string providerUserId, string userName, IDictionary<string, string> extraData) {
+ bool isSuccessful, string provider, string providerUserId, string userName, NameValueCollection extraData) {
this.IsSuccessful = isSuccessful;
this.Provider = provider;
this.ProviderUserId = providerUserId;
this.UserName = userName;
- if (extraData != null) {
- // wrap extraData in a read-only dictionary
- this.ExtraData = new ReadOnlyDictionary<string, string>(extraData);
- }
+ this.ExtraData = extraData ?? new NameValueCollection();
}
/// <summary>
@@ -95,7 +91,7 @@ namespace DotNetOpenAuth.AspNet {
/// <summary>
/// Gets the optional extra data that may be returned from the provider
/// </summary>
- public IDictionary<string, string> ExtraData { get; private set; }
+ public NameValueCollection ExtraData { get; private set; }
/// <summary>
/// Gets a value indicating whether the authentication step is successful.