diff options
5 files changed, 17 insertions, 18 deletions
diff --git a/samples/OpenIdProviderWebForms/Code/CustomStore.cs b/samples/OpenIdProviderWebForms/Code/CustomStore.cs index 34a3bc4..b716e8d 100644 --- a/samples/OpenIdProviderWebForms/Code/CustomStore.cs +++ b/samples/OpenIdProviderWebForms/Code/CustomStore.cs @@ -8,9 +8,7 @@ namespace OpenIdProviderWebForms.Code { using System; using System.Data; using System.Globalization; - using System.Security.Cryptography; using DotNetOpenAuth.OpenId; - using IProviderAssociationStore = DotNetOpenAuth.OpenId.IAssociationStore<DotNetOpenAuth.OpenId.AssociationRelyingPartyType>; using DotNetOpenAuth.OpenId.Provider; /// <summary> @@ -76,18 +74,6 @@ namespace OpenIdProviderWebForms.Code { #endregion - private void removeExpiredRows(DataTable table, string expiredColumnName) { - string filter = string.Format( - CultureInfo.InvariantCulture, - "{0} < #{1}#", - expiredColumnName, - DateTime.Now); - DataView view = new DataView(table, filter, null, DataViewRowState.CurrentRows); - for (int i = view.Count - 1; i >= 0; i--) { - view.Delete(i); - } - } - #region INonceStore Members /// <summary> @@ -135,5 +121,17 @@ namespace OpenIdProviderWebForms.Code { } #endregion + + private void removeExpiredRows(DataTable table, string expiredColumnName) { + string filter = string.Format( + CultureInfo.InvariantCulture, + "{0} < #{1}#", + expiredColumnName, + DateTime.Now); + DataView view = new DataView(table, filter, null, DataViewRowState.CurrentRows); + for (int i = view.Count - 1; i >= 0; i--) { + view.Delete(i); + } + } } } diff --git a/src/DotNetOpenAuth/Configuration/MessagingElement.cs b/src/DotNetOpenAuth/Configuration/MessagingElement.cs index 197e31b..15204a5 100644 --- a/src/DotNetOpenAuth/Configuration/MessagingElement.cs +++ b/src/DotNetOpenAuth/Configuration/MessagingElement.cs @@ -18,7 +18,7 @@ namespace DotNetOpenAuth.Configuration { /// The name of the <untrustedWebRequest> sub-element. /// </summary> private const string UntrustedWebRequestElementName = "untrustedWebRequest"; - + /// <summary> /// The name of the attribute that stores the association's maximum lifetime. /// </summary> diff --git a/src/DotNetOpenAuth/OpenId/ChannelElements/SigningBindingElement.cs b/src/DotNetOpenAuth/OpenId/ChannelElements/SigningBindingElement.cs index 8f461c3..b5ba40d 100644 --- a/src/DotNetOpenAuth/OpenId/ChannelElements/SigningBindingElement.cs +++ b/src/DotNetOpenAuth/OpenId/ChannelElements/SigningBindingElement.cs @@ -329,7 +329,7 @@ namespace DotNetOpenAuth.OpenId.ChannelElements { // If no assoc_handle was given or it was invalid, the only thing // left to do is sign a message using a 'dumb' mode association. Protocol protocol = Protocol.Default; - Association association = this.opAssociations.GetAssociation(AssociationRelyingPartyType.Dumb, opSecuritySettings); + Association association = this.opAssociations.GetAssociation(AssociationRelyingPartyType.Dumb, this.opSecuritySettings); if (association == null) { association = HmacShaAssociation.Create(protocol, protocol.Args.SignatureAlgorithm.HMAC_SHA256, AssociationRelyingPartyType.Dumb, this.opSecuritySettings); this.opAssociations.StoreAssociation(AssociationRelyingPartyType.Dumb, association); diff --git a/src/DotNetOpenAuth/OpenId/HmacShaAssociation.cs b/src/DotNetOpenAuth/OpenId/HmacShaAssociation.cs index 2dab1a5..4035006 100644 --- a/src/DotNetOpenAuth/OpenId/HmacShaAssociation.cs +++ b/src/DotNetOpenAuth/OpenId/HmacShaAssociation.cs @@ -79,7 +79,7 @@ namespace DotNetOpenAuth.OpenId { public override int HashBitLength { get { Protocol protocol = Protocol.Default; - return HmacShaAssociation.GetSecretLength(protocol, GetAssociationType(protocol)) * 8; + return HmacShaAssociation.GetSecretLength(protocol, this.GetAssociationType(protocol)) * 8; } } diff --git a/src/DotNetOpenAuth/OpenId/SecuritySettings.cs b/src/DotNetOpenAuth/OpenId/SecuritySettings.cs index 3a902a1..422813b 100644 --- a/src/DotNetOpenAuth/OpenId/SecuritySettings.cs +++ b/src/DotNetOpenAuth/OpenId/SecuritySettings.cs @@ -4,8 +4,9 @@ // </copyright> //----------------------------------------------------------------------- -using DotNetOpenAuth.Messaging; namespace DotNetOpenAuth.OpenId { + using DotNetOpenAuth.Messaging; + /// <summary> /// Security settings that may be applicable to both relying parties and providers. /// </summary> |