Login with Amazon Cognito: users, tokens and the FORCE_CHANGE_PASSWORD status
Publicado originalmente en iot.gripe , como parte 11 de la serie "Domótica con ESP32 y AWS desde cero". Un sistema que controla las luces de una casa no debería tener registro público: las cuentas las crea alguien de confianza. En Amazon Cognito, ese modelo pasa por usuarios creados por un administrador con contraseña temporal y el estado FORCE_CHANGE_PASSWORD . En esta parte implementamos el…
An article from iot.gripe reports on implementing login functionality in a React application using the AWS SDK, specifically with Amazon Cognito. The system is designed to control a home's lights and requires secure user management, where user accounts are created by a trusted administrator with temporary passwords. The article explains the components of Cognito User Pool, including user directory, app client, and identity pool, and provides code examples for login, user creation, and password recovery.
It also details how to configure Cognito to disable public registration and require administrators to create user accounts.
Summarised by urgent.news, not translated. Machine-written; may contain errors — check the original.
Source: dev.to