Giter VIP home page Giter VIP logo

Comments (2)

cppfuns avatar cppfuns commented on May 25, 2024

@xinliangnote

from go-gin-api.

xinliangnote avatar xinliangnote commented on May 25, 2024

咱们不是有 swagger 接口文档嘛,如果接口开启了签名验证,在 swagger 接口文档中请求接口时,会提示 “签名错误”,为了解决这个问题,增加了一个接口用于生成某个请求的签名。

不过后来调试起来太麻烦... 我就调整为测试环境不进行签名验证了。

另外,这个接口是帮助生成签名的,如果是随意生成的签名也是无效的,请求你的程序也无法验证通过,如果有这个顾虑,可以删掉这个路由。

当然如果“有心人”想破解你的签名验证规则,通过其他方式也可以的,在这我就不说了...

就算是签名验证被破解了,那也无妨,因为一些接口咱们还是需要登录验证的。

from go-gin-api.

Related Issues (20)

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.