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...

貢獻者指南