go-admin
go-admin copied to clipboard
基于Gin + Vue + Element UI & Arco Design & Ant Design 的前后端分离权限管理系统脚手架(包含了:多租户的支持,基础用户管理功能,jwt鉴权,代码生成器,RBAC资源控制,表单构建,定时任务等)3分钟构建自己的...
[[中文版模板 / Chinese template](https://github.com/go-admin-team/go-admin/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] ### 🤔 This is a ... - [ ] Bug fix ### 🔗 Related issue link ### 💡 Background and solution fix refresh_token bug: The methods...
``` type AdapterCache interface { String() string Get(key string) (string, error) Set(key string, val interface{}, expire int) error Del(key string) error HashGet(hk, key string) (string, error) HashDel(hk, key string) error...
跟踪了一下该框架的token刷新机制,发现存在一些漏洞 1. 刷新token ui接口(post /refreshtoken)与后台服务接口(GET /api/v1/refresh_token)没有对应上,当然前端压根就没有刷新token机制,也就是没有实现无感续期token,所以也就从来没发现接口错了。 2. 后端没有区分业务token与续期token,全都使用同个token,业务token是长时间使用,且容易泄露,一旦拿到业务token就可以调用get /api/v1/refresh_token进行永久续期,这是很大的隐患和漏洞。 既然没有打算实现无感刷新,建议把刷新token接口禁止掉。  
[[中文版模板 / Chinese template](https://github.com/go-admin-team/go-admin/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] ### 🤔 This is a ... - [ ] New feature - [ ] Bug fix - [ ] Site / documentation update - [ ]...
全局搜索这个,都没有关于reids使用,还是说要自己去集成呢 @wenjianzhang bigolder 如果不需要自己集成,需要怎么使用呢
为什么接口管理没有新增接口功能,创建新的模块,添加不了接口,怎么获取到权限?
### Reproduction link [https://github.com/go-admin-team/go-admin/issues](https://github.com/go-admin-team/go-admin/issues) ### Steps to reproduce 无 ### What is expected? 调用数据库 ### What is actually happening? 调用数据库 | Environment | Info | | --- | --- |...