Friday, 7 December 2018
Tuesday, 25 September 2018
cognito and aws cli to reset password
If you have the error:
An error occurred (InvalidParameterException) when calling the AdminRespondToAuthChallenge operation: Invalid attributes given, name is missing
aws cognito-idp admin-initiate-auth --user-pool-id xxxx --client-id xxxxxxxxx --auth-flow ADMIN_NO_SRP_AUTH --auth-parameters USERNAME=xxxx,PASSWORD=xxxxx --region=xxxxx
then
aws cognito-idp admin-respond-to-auth-challenge --region=xxxxxx --user-pool-id xxxxxxx --client-id xxxxxxx --challenge-name NEW_PASSWORD_REQUIRED --challenge-responses file://auth.json --session "zxxxxxx"
create a file auth.json with content:
{
"userAttributes.name": "xxxxx",
"userAttributes.family_name": "xxxxx",
"userAttributes.email": "xxxx@xxxxx",
"NEW_PASSWORD": "xxxxx",
"USERNAME": "xxxxx"
}
An error occurred (InvalidParameterException) when calling the AdminRespondToAuthChallenge operation: Invalid attributes given, name is missing
aws cognito-idp admin-initiate-auth --user-pool-id xxxx --client-id xxxxxxxxx --auth-flow ADMIN_NO_SRP_AUTH --auth-parameters USERNAME=xxxx,PASSWORD=xxxxx --region=xxxxx
then
aws cognito-idp admin-respond-to-auth-challenge --region=xxxxxx --user-pool-id xxxxxxx --client-id xxxxxxx --challenge-name NEW_PASSWORD_REQUIRED --challenge-responses file://auth.json --session "zxxxxxx"
create a file auth.json with content:
{
"userAttributes.name": "xxxxx",
"userAttributes.family_name": "xxxxx",
"userAttributes.email": "xxxx@xxxxx",
"NEW_PASSWORD": "xxxxx",
"USERNAME": "xxxxx"
}
Tuesday, 22 May 2018
angular with aws-sdk
aws-sdk
change "types": [] to "types": ["node"] to tsconfig.json
or/and
node_modules/aws-sdk/clients/xxx.ts(xxx,xx): error TS2304: Cannot find name 'Buffer'.
change "types": [] to "types": ["node"] to tsconfig.json
or/and
npm install @types/node
Thursday, 26 April 2018
Bonsoir Ba (Sonar)
To be able to have a unique id for a project in sonar dashboard
-Dsonar.projectKey=some_value
Subscribe to:
Posts (Atom)