Problems reading authenticating a SAML assertion in .Net using WSSecurityTokenSerializer
I have a SAML assertion that I wish to authenticate in .Net using WSSecurityTokenSerializer . I've got the key-chain and SAML XML, despite a few issues . First I get the SAML assertion from the HTTPS POST: // spec says "SAMLResponse=" string rawSamlData = Request["SAMLResponse"]; // read the base64 encoded bytes byte[] samlData = Convert.FromBase64String(rawSamlData); // read back into a UTF string string samlAssertion = Encoding.UTF8.GetString(samlData); // get the SAML data in an XML reader var assertionPostStream = new StringReader(samlAssertion); var reader = XmlReader.Create