GithubHelp home page GithubHelp logo

Comments (3)

Smith-Cruise avatar Smith-Cruise commented on May 18, 2024

第一个问题:官方规范的话是使用Bearer格式,不过我之所以是要使用username是因为我要通过username来校验用户的token是否合法,这个你可以看看我的逻辑处理。其实这一块不一定要按照规范来的嘛,只要你能保证最后鉴权能成功,没有权限漏洞即可。

第二个问题:JWT的token超时时间是支持的,你看看JWT的文档吧。

第三个问题:我刚刚发现shiro官方有shiro-spring-boot-web-starter的整合包,有时间我会重新写下教程,到时候也能很方便的实现注解等功能。顺便那个token鉴权方式我也会重新改写的,写好了会告诉你的。

from spring-boot-shiro.

sunwu51 avatar sunwu51 commented on May 18, 2024

好的谢谢

from spring-boot-shiro.

Smith-Cruise avatar Smith-Cruise commented on May 18, 2024

教程更新了,你可以看看

from spring-boot-shiro.

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.