diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-03-30 21:13:09 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-03-30 21:13:09 -0700 |
commit | 2ffc3929d99019d02099cf5867843babe94fdb56 (patch) | |
tree | aa3c5e60d691ca89fe31e664c10104563dd6b571 /src | |
parent | bdc6c588b31032b2122812c22434ea261864dfe7 (diff) | |
download | DotNetOpenAuth-2ffc3929d99019d02099cf5867843babe94fdb56.zip DotNetOpenAuth-2ffc3929d99019d02099cf5867843babe94fdb56.tar.gz DotNetOpenAuth-2ffc3929d99019d02099cf5867843babe94fdb56.tar.bz2 |
UI extension request now won't throw on unrecognized values of the mode parameter.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/Extensions/UI/UIRequest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/OpenId/Extensions/UI/UIRequest.cs b/src/DotNetOpenAuth/OpenId/Extensions/UI/UIRequest.cs index 76a1c9b..bafdda5 100644 --- a/src/DotNetOpenAuth/OpenId/Extensions/UI/UIRequest.cs +++ b/src/DotNetOpenAuth/OpenId/Extensions/UI/UIRequest.cs @@ -61,6 +61,7 @@ namespace DotNetOpenAuth.OpenId.Extensions.UI { /// </summary> public UIRequest() { this.LanguagePreference = new[] { CultureInfo.CurrentUICulture }; + this.Mode = UIModes.Popup; } /// <summary> @@ -78,9 +79,8 @@ namespace DotNetOpenAuth.OpenId.Extensions.UI { /// Gets the style of UI that the RP is hosting the OP's authentication page in. /// </summary> /// <value>Some value from the <see cref="UIModes"/> class. Defaults to <see cref="UIModes.Popup"/>.</value> - [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = "Design is to allow this later to be changable when more than one value exists.")] [MessagePart("mode", AllowEmpty = false, IsRequired = true)] - public string Mode { get { return UIModes.Popup; } } + public string Mode { get; set; } /// <summary> /// Gets or sets a value indicating whether the Relying Party has an icon |