Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AWS Cognito重定向url以获取PHP上的开放ID_Php_Amazon Web Services_Amazon Cognito - Fatal编程技术网

AWS Cognito重定向url以获取PHP上的开放ID

AWS Cognito重定向url以获取PHP上的开放ID,php,amazon-web-services,amazon-cognito,Php,Amazon Web Services,Amazon Cognito,我正在尝试从AWS Cognito获取电子邮件地址和开放ID引用。我的服务器使用PHP获取详细信息 下面是我用来从重定向中获取ID的代码。它抛出以下错误 require 'vendor/autoload.php'; use Aws\CognitoIdentity\CognitoIdentityClient; use Aws\Exception\AwsException; $identityClient = new CognitoIdentityClient([ 'region

我正在尝试从AWS Cognito获取电子邮件地址和开放ID引用。我的服务器使用PHP获取详细信息

下面是我用来从重定向中获取ID的代码。它抛出以下错误

require 'vendor/autoload.php';

use Aws\CognitoIdentity\CognitoIdentityClient;
use Aws\Exception\AwsException;



 
$identityClient = new CognitoIdentityClient([
    'region' => 'us-east-1',
    'version' => '2014-06-30',
    'credentials' => [
        'key' => 'maskedked6dog30cakeywasmasked',
        'secret' => 'secretmaskedg89dkblo7thisalsomaskediath6secretmasked'
    ]
]);


$identityPoolid = "us-east-1_idMask3ed";
$appid = "maskedku6dog30caotheid";

$facebook = "graph.facebook.com";
$google = "accounts.google.com";
$amazon = "www.amazon.com";
$twitter = "api.twitter.com";
$digits = "www.digits.com";
$cognigoUserPool = 'cognito-idp.us-east-1.amazonaws.com/';

try {
    $result = $identityClient->getId([
        'IdentityPoolId' => $identityPoolid,
        'Logins' => [$cognigoUserPool => $appid ]
    ]);
    echo $result["IdentityPoolId"]["ClientId"];
    var_dump($result);
} catch (AwsException $e) {
    // output error message if fails
    echo $e->getMessage() . "\n";
    error_log($e->getMessage());
}
这是什么错误

在上执行“GetId”时出错 "https://cognito-identity.us-east-1.amazonaws.com"; AWS HTTP错误: 客户端错误:
POSThttps://cognito-identity.us-east-1.amazonaws.com
导致
400错误请求
响应: {“_类型”:“ValidationException”,“消息”:“1验证错误” 检测到:在“identityPoolId”处的值“us-east-1_GAinmasked” (截断…)ValidationException(客户端):1个验证错误 检测到:“identityPoolId”处的值“us-east-1_masked”无法读取 满足约束:成员必须满足正则表达式模式: [\w-]+:[0-9a-f-]+-{“\uu类型”:“ValidationException”,“message”:“1” 检测到验证错误:“identityPoolId”处的值“us-east-1_mask” 未能满足约束:成员必须满足正则表达式 模式:[\w-]+:[0-9a-f-]+“}

这个错误的原因是什么