actix-web-grants
Extension for
actix-web
to validate user permissions.
To check user access to specific services, you can use built-in proc-macro
, PermissionGuard
or manual.
The library can also be integrated with third-party solutions (like actix-web-httpauth
).
Example of proc-macro
way protection
use ;
async
Example of Guard
way protection
use ;
new
.wrap
.service
Example of manual way protection
use ;
async
You can find more examples
in the git repository folder and documentation
.