Added support for Developer Authenticated Identities in Amazon Cognito

This is to fix #2668.