Я настраиваю Recaptcha для клиента с облачной учетной записью Google Enterprise.
Я использовал ключ API, который является самым простым, основанным на конфигурации моих клиентских файлов.
Все работает хорошо, пока я не назвал https://recaptchaenterprise.googleapis. ... ojects//rl. : < /p>
{
"error": {
"code": 403,
"message": "Permission denied for: recaptchaenterprise.assessments.create. Please ensure you have sufficient permissions: https://cloud.google.com/iam/docs/grant ... ing-access",
"status": "PERMISSION_DENIED"
}
}
< /code>
Вот мой код: < /p>
$verify_url = "https://recaptchaenterprise.googleapis. ... ey=API_KEY";
$data = [
"event" => [
'expectedAction' => 'CONTACT_FORM',
"token" => $recaptcha_token,
'siteKey' => $google_site_key
]
];
$ch = curl_init($verify_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
curl_close($ch);
$response_data = json_decode($response);
< /code>
Я попытался настроить учетную запись службы с помощью «Recaptcha Enterprise Agent»
Rights Access, но ничего не работает (и я не понимаю, как ключ API должен быть связан с учетной записью службы).
Я удалил все ограничения из ключа API, но он не работает.>
Подробнее здесь: https://stackoverflow.com/questions/796 ... ssments-cr
Recaptcha Enterprises "разрешение отказано для: recaptchaenterprise.assessments.create" ⇐ Php
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Recaptcha Enterprises "разрешение отказано для: recaptchaenterprise.assessments.create"
Anonymous » » в форуме Php - 0 Ответы
- 3 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Recaptcha Enterprises "разрешение отказано для: recaptchaenterprise.assessments.create"
Anonymous » » в форуме Php - 0 Ответы
- 4 Просмотры
-
Последнее сообщение Anonymous
-