Giter Club home page Giter Club logo

fork-gt4_node_express_demo's Introduction

运行demo

1.Node.js版本: v14.17.3
2.启动流程:

npm install
npm start

3.在浏览器中访问http://localhost:3000即可看到demo界面

接入流程

1.配置极验参数
2.获取前端参数
3.生成签名
4.请求极验服务, 校验用户验证状态
5.根据极验返回的用户验证状态, 网站主进行自己的业务逻辑

二次校验接口

接口信息 说明
接口地址 http://gcaptcha4.geetest.com/validate
请求方式 GET/POST
内容类型 application/x-www-form-urlencoded
返回格式 json

1.请求参数

参数名 类型 说明
lot_number string 验证流水号
captcha_output string 验证输出信息
pass_token string 验证通过标识
gen_time string 验证通过时间戳
captcha_id string 验证 id
sign_token string 验证签名

2.响应参数

参数名 类型 说明
result string 二次校验结果
reason string 校验结果说明
captcha_args dict 验证输出参数

en:

Run demo

1.Version: Node.js: v14.17.3

2.Start process:

npm install
npm start

3.Visit http://localhost:3000 in browser to see demo interface

Access process

1.Configure GeeTest parameters
2.Get front-end parameters
3.Generate signature
4.Request GeeTest service to validate user legitimacy
5.Client follows its own business logic according to verification result returned from GeeTest server

Secondary validation interface

Item Description
API address http://gcaptcha4.geetest.com/validate
Request method GET/POST
Content type application/x-www-form-urlencoded
Response format json

1.Request parameters

Parameter Name Type Description
lot_number string Verify serial number
captcha_output string Verify output information
pass_token string Token of the verification
gen_time string Timestamp of the verification
captcha_id string CAPTCHA ID
sign_token string Verification signature

2.Response parameters

Parameter Name Type Description
result string Secondary validation result
reason string Validation result description
captcha_args dict Verify output parameters

fork-gt4_node_express_demo's People

Contributors

tanhuagt avatar oneyoung19 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.