authz
authz copied to clipboard
[Question] Can you please provide an example?
Hi there,
Looks great, though I am not too sure how to implement it, is there a chance you could add a full example how to implement in a gin app?
Thanks in advance, Julio
Second this, need an example use this with your gin-jwt
@JalinWang
Hi there,
Looks great, though I am not too sure how to implement it, is there a chance you could add a full example how to implement in a gin app?
Thanks in advance, Julio
I don't get you. What do you want to know?
Second this, need an example use this with your gin-jwt
Authz
works like a wrap of middleware.BasicAuth
and just reads the Authorization
header. You can integrate it with gin-jwt
just as how you do with BasicAuth + JWT
(A blog in Chinese for ref). What you need to do is replace middleware.BasicAuth(auth)
with authz.NewAuthorizer(e)
in README.
I don't get you. What do you want to know?
@JalinWang Curse of Knowledge aye?
@MushiTheMoshi @tomriddle1234 @qrhfz see: https://github.com/casbin/gin-casbin-example