summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-11-04 23:07:46 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-11-04 23:07:46 -0800
commit9555817327b24f2a0640c4f1518757fa3032b24b (patch)
tree28b99025a06d79654c604435b80519f7aaede105 /src
parentacb450269cc2c8c52106335bc047dd389f5c6183 (diff)
downloadDotNetOpenAuth-9555817327b24f2a0640c4f1518757fa3032b24b.zip
DotNetOpenAuth-9555817327b24f2a0640c4f1518757fa3032b24b.tar.gz
DotNetOpenAuth-9555817327b24f2a0640c4f1518757fa3032b24b.tar.bz2
Fixed bugs in how OpenIdSelector generates hidden field names when it is in an INamingContainer.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs
index 6d60845..c0d0c0f 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs
@@ -41,6 +41,12 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// </summary>
internal const string EmbeddedStylesheetResourceName = Util.DefaultNamespace + ".OpenId.RelyingParty.OpenIdSelector.css";
+ /// <summary>
+ /// The substring to append to the end of the id or name of this control to form the
+ /// unique name of the hidden field that will carry the positive assertion on postback.
+ /// </summary>
+ private const string AuthDataFormKeySuffix = "_openidAuthData";
+
#region ViewState keys
/// <summary>
@@ -166,7 +172,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// Usually a concatenation of the control's name and <c>"_openidAuthData"</c>.
/// </value>
protected override string OpenIdAuthDataFormKey {
- get { return this.ClientID + "_openidAuthData"; }
+ get { return this.UniqueID + AuthDataFormKeySuffix; }
}
/// <summary>
@@ -189,7 +195,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
this.Controls.Add(this.textBox);
this.positiveAssertionField = new HiddenField();
- this.positiveAssertionField.ID = this.OpenIdAuthDataFormKey;
+ this.positiveAssertionField.ID = this.ID + AuthDataFormKeySuffix;
this.Controls.Add(this.positiveAssertionField);
}