public DKSAML20ProfileValidationTest() { _validator = new DKSaml20AssertionValidator(AssertionUtil.GetAudiences(), false); }
public void Issuer_Element_QuirksMode() { Assertion saml20Assertion = AssertionUtil.GetBasicAssertion(); Assert.IsNotNull(saml20Assertion.Issuer); saml20Assertion.Issuer = new NameID(); saml20Assertion.Issuer.Value = "http://safewhere.net"; saml20Assertion.Issuer.Format = "http://example.com"; DKSaml20AssertionValidator quirksModeValidator = new DKSaml20AssertionValidator(AssertionUtil.GetAudiences(), true); try { quirksModeValidator.ValidateAssertion(saml20Assertion); } catch (Exception e) { Assert.That(false, "The above validation should not fail in quirksMode: " + e.ToString()); } }