diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-30 09:41:15 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-30 09:41:15 -0800 |
commit | 118ad5d4b8f508657b12ad03cbc54cb177d3ea23 (patch) | |
tree | 238e4fcd7ab15c743491b58bb75d1485f3467c5f /src/DotNetOpenAuth.Test/OpenId/RelyingParty/AuthenticationRequestTests.cs | |
parent | 28ebe1a74970ca88302733c3c2b602f46504ce3d (diff) | |
download | DotNetOpenAuth-118ad5d4b8f508657b12ad03cbc54cb177d3ea23.zip DotNetOpenAuth-118ad5d4b8f508657b12ad03cbc54cb177d3ea23.tar.gz DotNetOpenAuth-118ad5d4b8f508657b12ad03cbc54cb177d3ea23.tar.bz2 |
Support for dual (OP+Claimed) identifiers is contrary to the spec, so we're turning support for it back off (under a switch).
See commit 1243c92a0172784f32938a2081f76463f90f102d for where this feature was first introduced.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/RelyingParty/AuthenticationRequestTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/RelyingParty/AuthenticationRequestTests.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/RelyingParty/AuthenticationRequestTests.cs b/src/DotNetOpenAuth.Test/OpenId/RelyingParty/AuthenticationRequestTests.cs index f243a69..8f53cdd 100644 --- a/src/DotNetOpenAuth.Test/OpenId/RelyingParty/AuthenticationRequestTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/RelyingParty/AuthenticationRequestTests.cs @@ -178,7 +178,14 @@ namespace DotNetOpenAuth.Test.OpenId.RelyingParty { /// </summary> [TestMethod] public void DualIdentifierUsedOnlyAsOPIdentifierForAuthRequest() { - var results = AuthenticationRequest.Create(GetMockDualIdentifier(), this.CreateRelyingParty(true), this.realm, this.returnTo, false).ToList(); + var rp = this.CreateRelyingParty(true); + var results = AuthenticationRequest.Create(GetMockDualIdentifier(), rp, this.realm, this.returnTo, false).ToList(); + Assert.AreEqual(1, results.Count); + Assert.IsTrue(results[0].IsDirectedIdentity); + + // Also test when dual identiifer support is turned on. + rp.SecuritySettings.AllowDualPurposeIdentifiers = true; + results = AuthenticationRequest.Create(GetMockDualIdentifier(), rp, this.realm, this.returnTo, false).ToList(); Assert.AreEqual(1, results.Count); Assert.IsTrue(results[0].IsDirectedIdentity); } |