go-kit / go-kit/kit

auth/casbin readme and example

Open
#972 1 comment 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Go
Stars
27.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.