go-kit/kit

auth/casbin readme and example

Open

#972 geöffnet am 4. Apr. 2020

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Go (2.446 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (27.422 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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