Egg: 新的权限验证模块

Created on 22 Jan 2017  ·  10Comments  ·  Source: eggjs/egg

Most helpful comment

文档在 https://github.com/eggjs/egg-userrole

后面可能会基于 cancancan 做另一套吧,暂时没计划

All 10 comments

什么时候能加入权限模块

@coolicer 你的需求场景是?
目前的 userrole 不能满足?

cc @jtyjty99999

@atian25 你是说内置有还是说写死的那种?

内置有 egg-userrole 插件

@atian25 好的,我刚看这个egg,不知道还有这个。

文档在 https://github.com/eggjs/egg-userrole

后面可能会基于 cancancan 做另一套吧,暂时没计划

请问有那种可以配置的权限管理吗? 比如基于路由资源的权限管理 路由参数映射成对应的权限功能 存数据库 这样可以灵活配置 比如 localhost:8000/user/find/:id /user/delete/ /user/update/ /user/create/ 这样的基于资源的权限管理 我们的项目目前是这么做的 但是觉得不够自动化

目前没有,你可以看看上面提的模块,有需要自己封装下,回馈给社区

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Leungkingman picture Leungkingman  ·  3Comments

weijiatan456 picture weijiatan456  ·  3Comments

wujianling picture wujianling  ·  3Comments

dizhifeng picture dizhifeng  ·  3Comments

yuu2lee4 picture yuu2lee4  ·  3Comments