axum-casbin
Axum authorization middleware based on Casbin (by casbin-rs)
axum-login
🪪 User identification, authentication, and authorization for Axum. (by maxcountryman)
axum-casbin | axum-login | |
---|---|---|
1 | 5 | |
32 | 459 | |
- | - | |
5.2 | 8.6 | |
3 months ago | about 1 month ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
axum-casbin
Posts with mentions or reviews of axum-casbin.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-29.
-
Backend API recommendations
i haven't done rbac with rust but stuff like this looks promising: https://github.com/casbin-rs/axum-casbin (seems you'd use it in conjunction with the authorization tower middleware)
axum-login
Posts with mentions or reviews of axum-login.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-28.
- Show HN: Axum-login, simple and flexible user auth for your Rust axum projects
-
Shared data through ( ASKAMA template engine ) like username for all pages?
One option is to use the axum-login crate. It allows one to define a User struct, and a function that validates login credentials. With that, axum-login takes care of session management and provides a AuthSession object to each page, for example:
-
axum-login v0.4.0 released
You might find the oauth example helpful: https://github.com/maxcountryman/axum-login/tree/main/examples/oauth
-
axum-login v0.2.0 released
axum-login is a Tower middleware providing session-based user authentication for axum applications:
What are some alternatives?
When comparing axum-casbin and axum-login you can also consider the following projects:
poem-casbin - Casbin Poem access control middleware
axum-auth - High-level http auth extractors for axum
casbin-rs - An authorization library that supports access control models like ACL, RBAC, ABAC in Rust.
axum-tutorial - Axum web framework tutorial for beginners.