title: How to setup a load-test with JMeter for performing SP initiated SSO's with SAML
body: <p>I want to setup a load-test with JMeter for performing SP initiated SSO's using SAMLv2 with a variety of users. This includes posting the required <code>AuthNRequest</code> message to the login URL of the Identity Provider (IDP) but also the credentials (username, password) of the current user.</p>
  
  <p>The <code>AuthNRequest</code> must be signed and encrypted so I want to leave that to the service provider (SP) and grab that somehow so I can reuse that (but I don't know if I need to do that in the first place - maybe a follow redirect is sufficient enough).</p>
  
  <p>I find it hard to get my head around which steps to take for getting this done. I don't need exact guidance on where to click in JMeter but more a general overview of the involved HTTP request samplers (including order), pre and post processors and assertions.</p>
  
  <p>We have service providers that support both the <a href="http://en.wikipedia.org/wiki/SAML_2.0#HTTP_POST_Binding" rel="nofollow">SAML HTTP-POST</a> and <a href="http://en.wikipedia.org/wiki/SAML_2.0#HTTP_Redirect_Binding" rel="nofollow">SAML HTTP-Redirect</a> binding to transport the <code>AuthNRequest</code> to the IDP.</p>
  
  <p>Any help would be great! Thanks in advance.</p>