I'm looking for documentation on how to extend our existing Cognito Authentication process to include additional "Enabled Identity Providers".
Currently we do the following
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 });
If the resulting context.AuthenticationResult
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.
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.