diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-08 14:29:38 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-08 14:29:38 -0700 |
commit | 0d770e52ec07737ada68cf37eb86fb6d3921fa0b (patch) | |
tree | 392705af13b5a197c49c2996677e9f89c15b50fa /src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs | |
parent | c9d487b66ea899b69b3c33ac45f499c6c61c9b21 (diff) | |
download | DotNetOpenAuth-0d770e52ec07737ada68cf37eb86fb6d3921fa0b.zip DotNetOpenAuth-0d770e52ec07737ada68cf37eb86fb6d3921fa0b.tar.gz DotNetOpenAuth-0d770e52ec07737ada68cf37eb86fb6d3921fa0b.tar.bz2 |
Created an IProviderAssociationStore interface so that encoding the association into the handle is just one option.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs index fc1c98b..4ca2c90 100644 --- a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs +++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs @@ -34,7 +34,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions { IEnumerable<IOpenIdMessageExtension> requests, IEnumerable<IOpenIdMessageExtension> responses) { var securitySettings = new ProviderSecuritySettings(); - var associationStore = new ProviderAssociationStore(); + var associationStore = new ProviderAssociationHandleEncoder(); Association association = HmacShaAssociation.Create(protocol, protocol.Args.SignatureAlgorithm.Best, AssociationRelyingPartyType.Smart, associationStore, securitySettings); var coordinator = new OpenIdCoordinator( rp => { @@ -58,7 +58,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions { }, op => { RegisterExtension(op.Channel, Mocks.MockOpenIdExtension.Factory); - op.AssociationStore.Secret = associationStore.Secret; + ((ProviderAssociationHandleEncoder)op.AssociationStore).Secret = associationStore.Secret; var request = op.Channel.ReadFromRequest<CheckIdRequest>(); var response = new PositiveAssertionResponse(request); var receivedRequests = request.Extensions.Cast<IOpenIdMessageExtension>(); |