Giter Site home page Giter Site logo

建议增加接口防刷能力 about sa-token HOT 7 OPEN

jorbiee avatar jorbiee commented on June 12, 2024 2
建议增加接口防刷能力

from sa-token.

Comments (7)

ly-chn avatar ly-chn commented on June 12, 2024 2

其实之前有过这么一个考虑, 也断断续续的写了一个, 但是始终不尽人意. 因此就搁置了, 什么时候闲的蛋疼就拿出来写两行.

不过我还是在sa-token相关讨论中见过多次限流需求的. 只是需求整理起来太繁琐, 很少有人能讲明白自己真正需要什么.

此issue就暂且保留吧, 如果近期还有人继续跟帖, 此问题将会再次被关注

from sa-token.

ly-chn avatar ly-chn commented on June 12, 2024

这属于限流功能, 类似接口签名使用一次后失效这种, 根据每个公司的策略不同, sa-token作为鉴权库, 无法提供统一接口.

不过如果有兴趣讨论的话, 欢迎继续此话题

from sa-token.

jorbiee avatar jorbiee commented on June 12, 2024

我觉得可以提供类库包装签名算法或者限流能力,加密规则这些有默认的也可以根据公司策略自己生成!因为在C端系统做这些还是有必要的,如果能提供一套默认能力,对于小公司来讲 其实可以降低接入门槛

from sa-token.

lzb-libra avatar lzb-libra commented on June 12, 2024

这个功能应该不属于权限这一范畴吧,但可以自定义一个注解来实现呀

from sa-token.

tjlizz avatar tjlizz commented on June 12, 2024

#430 这里是不是也提到这个问题了。

临时token令牌认证

后面那一串字母是乱打出来的,目的是为了突出它的随机性,即:使用一个随机的token来代替明文显示真正的数据

文档中提到了随机性,但是,在有效时间内可以多次加入公会是不是不太好。

from sa-token.

ly-chn avatar ly-chn commented on June 12, 2024

#430 这里是不是也提到这个问题了。

临时token令牌认证

后面那一串字母是乱打出来的,目的是为了突出它的随机性,即:使用一个随机的token来代替明文显示真正的数据

文档中提到了随机性,但是,在有效时间内可以多次加入公会是不是不太好。

这个你完全可以在有人加入工会后删掉临时token, 就能达到目的,

具体业务都是人来开发的, 比如邀请入群的链接, 那一般支持多次, 工会也是.

from sa-token.

Alixhan avatar Alixhan commented on June 12, 2024

这个是网关该做的事情,和权限框架无关

from sa-token.

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.