axum-login
axum-login copied to clipboard
🪪 User identification, authentication, and authorization for Axum.
I'm working on adding an example for postgres, since it seems to differ a bit from the sqlite example provided. I'm currently debugging why the session authentication here: ```rust //...
Adding a login-logout test to the sqlite example. Several questions arose while implementing the test: - How to build the login request, to include cookies(*) like `AuthSession` and `Messages` in...
Previously we relied on the `secrecy` crate to ensure the `session_auth_hash` was handled carefully. However, it's unclear to me how active development is of that crate. It's also worth mentioning...
Hello, Currently the library always returns a specified set of responses on errors. We can see it [here ](https://github.com/maxcountryman/axum-login/blob/4efb8aa42bd715822b99e9cae30d222a31ac3b1e/axum-login/src/auth.rs#L124) and [here](https://github.com/maxcountryman/axum-login/blob/4efb8aa42bd715822b99e9cae30d222a31ac3b1e/axum-login/src/auth.rs#L199). In some cases the users may want to modify...
Based on the suggestion on #254, this allows to change the redirect status code to 303-See Other or 307-Temporary Redirect (default)
This change modifies the status code used in the `login_required!` from its current value of 307 (Temporary Redirect) to 303 (See Other). The update improves the redirect behavior when authentication...