title: How to authenticate using Enabled Identity Provider
body: <p>I'm looking for documentation on how to extend our existing Cognito Authentication process to include additional "Enabled Identity Providers".</p>
  
  <p>Currently we do the following</p>
  
  <p><code>var userPool = new CognitoUserPool(poolId, clientId, provider);
  var user = new CognitoUser(username, clientId, userPool, provider);
  var context = await user.StartWithSrpAuthAsync(new InitiateSrpAuthRequest { Password = string.IsNullOrEmpty(temppassword) ? password : temppassword });
  </code></p>
  
  <p>If the resulting <code>context.AuthenticationResult</code> is not null then we're away to the races, and I can use the context.AuthenticationResult.IdToken as the OAuthBearerToken in subsequent calls to to AWS API Gateway endpoints, that are protected by the same Cognito user pool.</p>
  
  <p>All that works great but now we're trying to Enable other Identity Providers (starting first with Auth0) and I'm now at a loss on how to get an IdToken that the API gateway will recognize from Cognito, for a user that is in one of the enabled Identity Providers.</p>