Tạo User Pool

  1. Mở Amazon Cognito console.

    • Chọn User pools trên menu bên trái.
    • Nhấp vào Create user pool. CreateUserPool
  2. Tại trang Set up resources for your application.

    • Chọn Traditional web application.
    • Nhập cognito-fcj-book-shop vào trường Name your application. CreateUserPool
    • Cuộn xuống, chọn Email tại hộp Configure options.
    • Nhấp vào nút Create user directory. CreateUserPool
  3. Quay lại Amazon Cognito management console.

    • Chọn User pools trên menu bên trái.
    • Chọn User pool - … vừa tạo trước đó. CreateUserPool
  4. Tại trang User pool - ….

    • Nhấp vào App clients trên menu bên trái.
    • Nhấp vào tên App client cognito-fcj-book-shop. CreateUserPool
  5. Tại trang App client: cognito-fcj-book-shop.

    • Ghi lại giá trị Client IDClient secret để sử dụng sau này.
    • Nhấp vào nút Edit. CreateUserPool
  6. Tại trang Edit app client information.

    • Chọn Sign in with username and password: ALLOW_USER_PASSWORD_AUTH tại Authentication flows. CreateUserPool
    • Cuộn xuống cuối trang và nhấp vào nút Save changes. CreateUserPool