title: SP Initiated - POST a SAML Request to Azure via code (C#)?
body: <p>What I have done so far...I have setup Azure AD, assigned users, and even taken endpoints and setup for different Microsoft sample apps. They all work out of the box. I just don't see any samples of sending Raw SAML Request/Response directly to Azure via code (C#).</p>
  
  <p>Is it possible to POST a SAML Request to Azure via code (C#) and have it return a SAML Response? Basically our Security Architect wants to manually create a SAML AuthRequest and send it to Azure then receive the SAML response for us to interrogate. Does it even work that way?</p>
  
  <p>We want to take that and then hit our security for Roles and Privs. It just seems like that info is an Identity Provider thing and that’s what we are supposed to be using Azure for.</p>
  
  <p><strong>My Thoughts:</strong>
  We have our own EnterpriseSecurity that works with our FederatedServer. There is a FetchToken class that contains FetchTokenSSOFederated(). I feel that if we setup a trust between our Federated Server and Azure then the SP initiated call would actually be FetchTokenSSOAzureFederated(). Our Federated Server would be handling everything between us and Azure.
  Any guidance is appreciated.</p>
  
  <p>Any guidance is appreciated.</p>
  
  <p>Thanks
  -Ken</p>