diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-01-30 16:43:43 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2009-01-30 16:49:34 -0800 |
commit | 7d7052e11a80aad9fea0b26831038bb9f983bbef (patch) | |
tree | a180607ba81a17114546a821d4ceab7329fb0d81 /src | |
parent | b4189674a57469adc6c59f93b9a20f595949e895 (diff) | |
download | DotNetOpenAuth-7d7052e11a80aad9fea0b26831038bb9f983bbef.zip DotNetOpenAuth-7d7052e11a80aad9fea0b26831038bb9f983bbef.tar.gz DotNetOpenAuth-7d7052e11a80aad9fea0b26831038bb9f983bbef.tar.bz2 |
Fixed direct response messages to have an extraData dictionary so OPs can send additional information.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/Messages/DirectResponseBase.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/OpenId/Messages/DirectResponseBase.cs b/src/DotNetOpenAuth/OpenId/Messages/DirectResponseBase.cs index a676b46..141669c 100644 --- a/src/DotNetOpenAuth/OpenId/Messages/DirectResponseBase.cs +++ b/src/DotNetOpenAuth/OpenId/Messages/DirectResponseBase.cs @@ -43,6 +43,11 @@ namespace DotNetOpenAuth.OpenId.Messages { private bool incoming; /// <summary> + /// The dictionary of parameters that are not part of the OpenID specification. + /// </summary> + private Dictionary<string, string> extraData = new Dictionary<string, string>(); + + /// <summary> /// Initializes a new instance of the <see cref="DirectResponseBase"/> class. /// </summary> /// <param name="originatingRequest">The originating request.</param> @@ -80,9 +85,8 @@ namespace DotNetOpenAuth.OpenId.Messages { /// <summary> /// Gets the extra, non-OAuth parameters included in the message. /// </summary> - /// <value>An empty dictionary.</value> public IDictionary<string, string> ExtraData { - get { return EmptyDictionary<string, string>.Instance; } + get { return this.extraData; } } #endregion |