IOS Native应用程序中的ReCaptcha实现

zqry0prt  于 2023-05-23  发布在  iOS
关注(0)|答案(1)|浏览(178)

我正在尝试在我的应用程序中使用Google Cloud中给出的说明实现Google reaptcha:https://cloud.google.com/recaptcha-enterprise/docs/instrument-ios-apps
我能够成功地获得recapchaToken,但无法通过https://www.google.com/recaptcha/api/siteverify中的给定API验证recapcha,即当我传递recapchaToken和secretKey来验证流时,我得到了错误的响应。

pxy2qtax

pxy2qtax1#

看来您可能正在使用reCAPTCHA遗留密钥来验证令牌,这是专为网站设计的。为了验证iOS或Android应用生成的令牌,您需要使用评估API。
要验证Google reCAPTCHA令牌,请遵循官方文档中提供的集成评估API的指南,可以在这里找到:(https://cloud.google.com/recaptcha-enterprise/docs/getting-started)。
按照提供的文档中的说明操作,您应该能够成功验证reCAPTCHA令牌。

相关问题