title: How to get a SAML Response from OKTA for unit/integration testing
body: <p>I am working on project where they are authenticating via SAML from OKTA.  I have successfully got the integration working where a SAMLResponse sent (via POST method) to the website.  </p>
  
  <p>In true TDD fashion, I started by writing some unit tests.  My unit tests take in a SAMLResponse (which is Base64 encoded).  All my unit tests work, however, because a SAMLResponse only have a lifetime (expires) of a few minutes, my unit tests break after a few minutes.</p>
  
  <p>So I need to periodically login to OKTA, then using Chrome dev tools capture the traffic being sent to my dev site.  I then copy and paste the SAMLResponse into my unit tests and get back to passing unit tests.  Obviously this is not a desirable situation.  </p>
  
  <p>So my question is how can I login to Okta in an automated fashion (preferably in C#) to get a SAMLResponse?  I assume there is some URL I can POST to with username and password and get back the SAMLReponse.  All my Fiddler attempts at trying to understand the required communicate has left me frustrated.  I am looking for any guidance you might have.  Thanks in advance.</p>