title: SAML2 Submitting XML SAMLRequest value in a form
body: <p>I'm trying to authenticate user logon with <code>SAML</code>. I have a simple <code>HTML</code> form.</p>
  
  <pre><code>&lt;form method="post" action="https://abcd/login"&gt; 
     &lt;input type="hidden" name="SAMLRequest" value="request" /&gt; 
     &lt;input type="hidden" name="RelayState" value="token" /&gt; 
     &lt;input type="submit" value="Submit" /&gt; 
  &lt;/form&gt; 
  </code></pre>
  
  <p>I'm confused about how I can send the <code>base64</code> encoding of the <code>XML</code> for the <code>SAMLRequest</code> with just <code>javascript</code>. It would be a huge help if someone could point me in the right direction or link to a demo.</p>