title: Example code for AWS Cognito User Pool InitiateAuth with Username and Password via HTTPS call?
body: <p>I am trying to use Cognito User Pool to authenticate with a PC application using an HTTPS call.  I want to obtain the various tokens that I can then use to access the AWS resources without storing AWS secrets in the PC application.</p>
  
  <p>The AWS documentation documents the <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html" rel="noreferrer">InitiateAuth method</a> and shows the <a href="https://docs.aws.amazon.com/general/latest/gr/cognito_identity.html" rel="noreferrer">AWS Endpoints</a>, but it is not immediately apparent how to make the call over HTTPS.  Most calls would require an AWS signature, but the InitiateAuth call should not, if I am just submitting Username and Password. </p>