go-kit/kit

auth/casbin readme and example

开放

#972 创建于 2020年4月4日

 (1 条评论) (1 个反应) (0 位负责人)Go (2,446 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (27,422 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

It's not clear to me how auth/casbin is meant to be used. I had a look at the test cases but it looks like that's just using hard-coded values. Are we meant to wrap this with our own middleware that injects the subject & object and populates the context with the model & policy or is this just meant to serve as an example implementation?

Would be good to have a readme to add a little more context...

贡献者指南