Aws - Cognito

> AWS (Amazon Web Services) > Aws - Cognito

1 - About

IAM (Identity Access Management) in Aws

Advertising

3 - Concept

3.1 - User pool vs Identity Pool

Account management where:

  • user pool is a user directory service to handle:
    • user registration,
    • authentication,
    • and account recovery.
  • identity pool (Federated Identities) is a way to authorize users to use AWS services (for example allowing a user to upload a file to an S3 bucket.)

3.2 - Authentication providers

Amazon Cognito provides two different mechanisms for authenticating users. You can use:

Advertising

3.3 - hosted-UI

To reduce the operational overhead of creating and maintaining forms and custom logic for authentication, Cognito has a hosted-UI.

Cognito - UI

3.4 - Permission

The permissions for each user are controlled through AWS IAM roles that you create.

Cognito Identity also allows you to define a separate IAM role with limited permissions for guest users who are not authenticated.

In addition, you can use the unique identifier that Cognito generates for your users to control access to specific resources. For example you can create a policy for an S3 bucket that only allows each user access to their own folder within the bucket.

4 - Authentication Steps

5 - Example

5.1 - Create a user pool and add an app

5.2 - Code

Advertising

6 - Documentation / Reference

aws/cognito/cognito.txt · Last modified: 2019/06/04 09:12 by gerardnico