title: How do I post to another website with a SAML assertion in MVC3?
body: <p>I have a SAML token formatted like so:</p>
  
  <pre><code>&lt;saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" MajorVersion="1" MinorVersion="1" AssertionID="_341bea3b-f497-4a4f-adff-2bd65e44fd67" Issuer="http://127.0.0.1:81/" IssueInstant="2012-03-12T15:08:26.618Z"&gt;
  &lt;saml:Conditions NotBefore="2012-03-12T15:08:26.585Z" NotOnOrAfter="2012-04-23T07:08:26.585Z"&gt;
      &lt;saml:AudienceRestrictionCondition&gt;
          &lt;saml:Audience&gt;http://127.0.0.2:83/&lt;/saml:Audience&gt;
      &lt;/saml:AudienceRestrictionCondition&gt;
  &lt;/saml:Conditions&gt;
  &lt;saml:AttributeStatement&gt;
      &lt;saml:Subject&gt;
          &lt;saml:SubjectConfirmation&gt;
              &lt;saml:ConfirmationMethod&gt;urn:oasis:names:tc:SAML:1.0:cm:bearer&lt;/saml:ConfirmationMethod&gt;
          &lt;/saml:SubjectConfirmation&gt;
      &lt;/saml:Subject&gt;
      &lt;saml:Attribute AttributeName="name" AttributeNamespace="http://schemas.xmlsoap.org/ws/2005/05/identity/claims"&gt;
          &lt;saml:AttributeValue&gt;tempName&lt;/saml:AttributeValue&gt;
      &lt;/saml:Attribute&gt;
  &lt;/saml:AttributeStatement&gt;
  &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;ds:SignedInfo&gt;
      &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
      &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/&gt;
      &lt;ds:Reference URI="#_341bea3b-f497-4a4f-adff-2bd65e44fd67"&gt;
          &lt;ds:Transforms&gt;
              &lt;ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/&gt;
              &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
          &lt;/ds:Transforms&gt;
          &lt;ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/&gt;
          &lt;ds:DigestValue&gt;4dssZKnMKbLVftPXnSxZlDjrKnDtyQ8Sb7FRup6wkwE=&lt;/ds:DigestValue&gt;
      &lt;/ds:Reference&gt;
      &lt;/ds:SignedInfo&gt;
  &lt;ds:SignatureValue&gt;
  REkPevPfjE86v+SCxGiomP2CConIVjTxuUpCIFDc+sAWUtEq3cMYZDwYfGKgEaSboIv1SUfYl8dUAEhQ+CjlCg7p3jF38f64HxexWHuLty2K+us74OmvK2F8CtG+xgwURAtJ14a6j/dTzuqzpn3hhHI7EXmrW1C5vrSAMQrVcyk=
  &lt;/ds:SignatureValue&gt;
  &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;X509Data&gt;
      &lt;X509Certificate&gt;
      MIICeDCCAeGgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBgDELMAkGA1UEBhMCR0IxDzANBgNVBAgTBkxvbmRvbjERMA8GA1UEBxMIVmljdG9yaWExITAfBgNVBAoTGFRob21zb25zIE9ubGluZSBCZW5lZml0czEUMBIGA1UECxMLRGV2ZWxvcG1lbnQxFDASBgNVBAMTC1Rlc3RpbmdDZXJ0MCAXDTExMDkxOTAwMDAwMFoYDzQwMDAwNzE5MTgwMzMzWjCBgDELMAkGA1UEBhMCR0IxDzANBgNVBAgTBkxvbmRvbjERMA8GA1UEBxMIVmljdG9yaWExITAfBgNVBAoTGFRob21zb25zIE9ubGluZSBCZW5lZml0czEUMBIGA1UECxMLRGV2ZWxvcG1lbnQxFDASBgNVBAMTC1Rlc3RpbmdDZXJ0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDC16AgeosO1rNdNU1nzAODZTcRuhoew3wJdVAbIcYqU57MLAYIhGIU/tovSGEOHnKjzNciYmXwLV6dVSCuygoOADNMAAgsfWYHDk2iZZLM8XuM2N6VVtJk/pc4wEITxBHLMqeCrJXTN/6JvTB1AHZWmfFm8jqMuMpXlowNEGoMJQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAExdjee3nfJ5wFtOrQcIwblrrM/XWfzhaj4Zzd6Bc/dofP44/PpMqwdyiJWYf/DmsXTM4YZ2HbdJyWXHCR+m/neWE1diVXlEAuArrjHDFWvsmqqK3bpKzSzabQF4wVxHaxbn49zUqale+tr5gXK36MKwq3I54ohd0T2i7HO8hKhF
      &lt;/X509Certificate&gt;
  &lt;/X509Data&gt;
  &lt;/KeyInfo&gt;
  &lt;/ds:Signature&gt;
  &lt;/saml:Assertion&gt;
  </code></pre>
  
  <p>I want to redirect from a MVC controller to another page in a separate MVC application and pass this SAML token along. What is the best way to go about this?</p>