Comments (7)
@294640262
确认下面这两个问题:
1.解析JWT后看下authorities字段是否有角色id集合
2.看下权限角色规则是否正常加载到redis中
from youlai-mall.
{ "alg": "RS256", "typ": "JWT" } { "user_name": "admin", "scope": ["all"], "id": 2, "exp": 1613726519, "authorities": ["2"], "jti": "5d9c81c8-0627-43fe-8293-9f6f1b718763", "client_id": "youlai-admin" }
1、以上为解析出来的结果,其中authorities带有角色id
2、权限角色规则是有存到redis中的,在进入.any()方法前,获取到的ahthorities为["ROLE_1","ROLE_2"]
还有其他可能的原因吗?代码我是直接跑起来的,没做改动
from youlai-mall.
@294640262 稍等你这个数据没问题
from youlai-mall.
@294640262 没做改动怎么会有user_name
from youlai-mall.
这个可能是比较早之前拉的版本,刚才重新在gitee上拉了个最新的版本,也是同样的问题
from youlai-mall.
@294640262 github和gitee是同步的,我试了启动也没问题,线上的也ok,群里的小伙伴也没这个问题
from youlai-mall.
@294640262 试着把maven仓库清理下
from youlai-mall.
Related Issues (20)
- 不更新了吗
- 本地启动中,auth服务和system服务问题 HOT 2
- 登录时报403错误 HOT 6
- [security vulnerability] Arbitrary User Information Access Vulnerability
- [security vulnerability] Arbitrary Order Detail Access Vulnerability
- [security vulnerability] Arbitrary Address Details Access Vulnerability
- [security vulnerability] Arbitrary Address Deletion Vulnerability
- 请问注销怎么实现呢? HOT 1
- [security vulnerability] Arbitrary Order Free delete
- [security vulnerability] Arbitrary Order Free Pay
- [security vulnerability] Arbitrary Address Update
- [sercurity vulnerability] sql inject
- Nacos启动报错
- 角色管理修改排序和状态无效
- 您好,请问下每个服务下对应都有两个模块api和boot,这样分模块是为什么呢 HOT 1
- common-log 怎么使用? HOT 2
- 这东西怎么填,不太会 HOT 1
- bug:There is no client authentication HOT 4
- 是否会增加模块——操作日志等
- 现在seata用的什么版本
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youlai-mall.