diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs | 2 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/OpenIdTestBase.cs | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs index 85f839f..2a08a96 100644 --- a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs @@ -135,7 +135,7 @@ namespace DotNetOpenAuth.Test.OpenId { } op.Channel.Send(response); - if (positive && !sharedAssociation) { + if (positive && (statelessRP || !sharedAssociation)) { var checkauthRequest = op.Channel.ReadFromRequest<CheckAuthenticationRequest>(); var checkauthResponse = new CheckAuthenticationResponse(checkauthRequest.Version, checkauthRequest); checkauthResponse.IsValid = checkauthRequest.IsValid; diff --git a/src/DotNetOpenAuth.Test/OpenId/OpenIdTestBase.cs b/src/DotNetOpenAuth.Test/OpenId/OpenIdTestBase.cs index 58eb4f4..dddae27 100644 --- a/src/DotNetOpenAuth.Test/OpenId/OpenIdTestBase.cs +++ b/src/DotNetOpenAuth.Test/OpenId/OpenIdTestBase.cs @@ -81,7 +81,11 @@ namespace DotNetOpenAuth.Test.OpenId { /// <param name="association">The association.</param> internal static void StoreAssociation(OpenIdRelyingParty relyingParty, Uri providerEndpoint, Association association) { var associationManagerAccessor = AssociationManager_Accessor.AttachShadow(relyingParty.AssociationManager); - associationManagerAccessor.associationStore.StoreAssociation(providerEndpoint, association); + + // Only store the association if the RP is not in stateless mode. + if (associationManagerAccessor.associationStore != null) { + associationManagerAccessor.associationStore.StoreAssociation(providerEndpoint, association); + } } /// <summary> |