summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-07-27 22:38:15 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-07-27 22:38:15 -0700
commit32f052d2aa83c95e4b13dbb98ab94b875ddd25d4 (patch)
tree371e57b88afaf38876199bcbc84b5f9a008be680 /src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs
parentc843a748845923bb1171a5bed28d37f039767005 (diff)
parent9abf0d6c972d7e26233522ec4fc1f5cc80799202 (diff)
downloadDotNetOpenAuth-32f052d2aa83c95e4b13dbb98ab94b875ddd25d4.zip
DotNetOpenAuth-32f052d2aa83c95e4b13dbb98ab94b875ddd25d4.tar.gz
DotNetOpenAuth-32f052d2aa83c95e4b13dbb98ab94b875ddd25d4.tar.bz2
Merge branch 'v3.1' into v3.2
Conflicts: src/DotNetOpenAuth/Messaging/MessagingUtilities.cs src/DotNetOpenAuth/OpenId/OpenIdStrings.resx src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAuthenticationResponse.cs src/version.txt
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs b/src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs
index 7701090..083b988 100644
--- a/src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/RelyingParty/PositiveAuthenticationResponseTests.cs
@@ -59,6 +59,18 @@ namespace DotNetOpenAuth.Test.OpenId.RelyingParty {
Assert.AreEqual(AuthenticationStatus.Failed, authResponse.Status);
}
+ /// <summary>
+ /// Verifies that the RP rejects positive assertions with HTTP Claimed
+ /// Cdentifiers when RequireSsl is set to true.
+ /// </summary>
+ [TestMethod, ExpectedException(typeof(ProtocolException))]
+ public void InsecureIdentifiersRejectedWithRequireSsl() {
+ PositiveAssertionResponse assertion = this.GetPositiveAssertion();
+ var rp = CreateRelyingParty();
+ rp.SecuritySettings.RequireSsl = true;
+ var authResponse = new PositiveAuthenticationResponse(assertion, rp);
+ }
+
[TestMethod]
public void GetCallbackArguments() {
PositiveAssertionResponse assertion = this.GetPositiveAssertion();