hello
Can anyone tell me how to use this for the script block?i belive it need some changes,also i have no idea what should i put in input variable and how to set result
$client = new CognitoIdentityProviderClient([
'version' => 'latest',
'region' => 'eu-west-1',
'credentials' => false,
]);
$srp = new Srp();
$a = $srp->getRandomSeed();
$A = $srp->generateA($a);
$result = $client->initiateAuth([
'UserPoolId' => 'USER_POOL_ID',
'ClientId' => 'CLIENT_ID',
'AuthFlow' => 'USER_SRP_AUTH',
'AuthParameters' => [
'USERNAME' => 'USERNAME',
'SRP_A' => $A
]
]);
var finalSalt = "";