concept Amazon Cognito in category aws

This is an excerpt from Manning's book AWS Lambda in Action: Event-driven serverless applications.
With Amazon Cognito, the client can authenticate using an external social or custom authentication (such as Facebook or Amazon) and get temporary AWS credentials to invoke the AWS Lambda functions the client is authorized to use (figure 1.13).
Amazon Cognito has been designed specifically to make it simple for external users and applications to assume a role on AWS and get temporary security credentials. Amazon Cognito makes it easy to follow AWS security best practices, such as not hard-coding AWS credentials whenever possible, especially where you can’t control access to those credentials, such as in a mobile app or JavaScript code downloaded from a web browser.
Using Amazon Cognito for authentication has another interesting advantage: specific policy variables that you can use to build more advanced policies, as listed in table 6.1.