title: How to open a ADFS Login screen and capture the SAML
body: <p>I am trying to capture a SAML token that my ADFS login gives me. I need to capture the SAML by browsing to the ADFS login page, Let the user login and then when login is successful return the SAML back to the application. The application tehn calls a WCF service passing the SAML token in the header. I have a Url like :</p>
  
  <pre><code>https://adfs.mydomain/adfs/ls/IdpInitiatedSignOn.aspx?RedirectToIdentityProvider=http://adfs.mydomain/adfs/services/trust&amp;loginToRP=https://bcjbsj.com/client-api/api/saml
  </code></pre>
  
  <p>I need to get this working wither in a windows application or console application. If this is not possible I can create a ASP .NET application also for testing. I have gone though many links but not able to find anything that helps.</p>
  
  <p>I may be missing something here. Quite new to authentication. Any help or pointers would be helpful.</p>