Different Ways of Creating Users in AWS Cognito
ฝัง
- เผยแพร่เมื่อ 15 ต.ค. 2024
- ASCENDING is an AWS Certified Consulting Partner. We provide Cloud Strategic Consulting service, Cloud Migration, Cloud Operation, and web/application development services to our organization clients.
-----------------------------------
ASCENDING Website: bit.ly/2KK4E2S
-----------------------------------
In this video, Sean, one of our software engineers in ASCENDING, will talk about various ways of registering users in the AWS Cognito user pool.
-----------------------------------
References:
docs.aws.amazo...
-----------------------------------
The demo for creating user by Cognito API:
import boto3
import json
client_cognito = boto3.client('cognito-idp')
response = client_cognito.admin_create_user(
UserPoolId='us-east-1_Mb6p10gvO',
Username='testUUU',
TemporaryPassword='Ascending123.',
UserAttributes=[
{
'Name': 'family_name',
'Value': 'Zhang'
},
{
'Name': 'given_name',
'Value': 'San'
},
{
'Name': 'email',
'Value': 'shuai.yuan+zs@frugalops.com'
}
])
print(response)
How the user, created by admin, can login with temporary password? When I am trying to login with temporary password for that user, using authenticateUser, it fails and return no error no response.
Please help.
I think with that temporary password we can't log in, or that status needs to be changed from FORCE_CHANGE_PASSWORD to CONFIRM(I think this will happen once we change the password). I'm not sure about it.
Thankyou