电子。 Google身份验证可避免reCapcha

时间:2018-10-04 12:32:17

标签: javascript google-api electron recaptcha google-oauth2

我在Electron上有我的应用程序,并且我使用webview标记来打开另一个网站。当我们使用webview标记时,我们可以执行我们的javascript或包含我们的javascript文件。该网站使用reCaptcha。我也有凭据,可以获取Google api的用户身份验证数据。 例子:

对“ https://www.googleapis.com/oauth2/v3/token”的响应:

access_token:"3Cz3jc66..." 
expires_in:3600
id_token:"eyJhbGciOiJS..."
refresh_token:"1/v_I2s..."
scope:"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
token_type:"Bearer"

对“ https://www.googleapis.com/userinfo/v2/me”的响应:

email:"example@gmail.com"
family_name:"tester"
gender:"male"
given_name:"Jack"
id:"113..."
link:"https://plus.google.com/113..."
locale:"en"
name:"Jack Tester"
picture:"https://lh3.googleusercontent.com/..."
verified_email:true

我如何避免使用此数据进行reCapcha,因为当我在chrome浏览器中获得授权时,从未调用过recaptcha。可以实现这种功能吗?也许还有另一种方法?

当我单击提交脚本时,发送发帖请求:“ https://www.google.com/recaptcha/api2/userverify?k=6Le...-6J8 ...”

含Cookie:

cookie: 
SID=hgbm....; HSID=A8zG...; SSID=A79k...; APISID=nntO..; 
SAPISID=kcGK.../AJM...; 1P_JAR=2018-10-4-12; 
NID=140=ORoF...; SIDCC=AGIh...

我可以创建或模拟这些cookie吗?

0 个答案:

没有答案