docs.rs failed to build axum_session_auth-0.17.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
axum_session_auth-0.16.0
Library to Provide a User Authentication and privilege Token Checks. It requires the Axum_Session library. This library will help by making it so User ID or authorizations are not stored on the Client side but rather on the Server side. The Authorization is linked by the Clients Serverside Session ID which is stored on the Client side. Formally known as Axum Sessions Auth
- Wraps
axum_sessionfor data management serverside. - Right Management API
- Auto load of user Data upon Page loads.
- User Data cache to Avoid Repeated Database calls when not needed.
Help
If you need help with this library or have suggestions please go to our Discord Group
Install
Sessions Authentication uses tokio runtime and ['axum_session'];
# Cargo.toml
[]
# Postgres + rustls
= { = "0.16.0" }
= { = "0.5.0" }
Cargo Feature Flags
| Features | Description |
|---|---|
advanced |
Enable functions allowing more direct control over the sessions. |
rest_mode |
Disables Cookie Handlering In place of Header only usage for Rest API Requests and Responses. |
key-store |
Enabled the optional key storage. Will increase ram usage based on Fastbloom settings. |
| Database Crate | Persistent | Description |
|---|---|---|
axum_session_sqlx |
Yes | Sqlx session store |
axum_session_surreal |
Yes | Surreal session store |
axum_session_mongo |
Yes | Mongo session store |
axum_session_redispool |
Yes | RedisPool session store |
Example
use ;
use SocketAddr;
use ;
use ;
use SessionPgPool;
use ;
async
// We can obtain the method to compare with the methods we allow, which is useful if this supports multiple methods.
// When called, auth is loaded in the background for you.
async
// This is only used if you want to use Token based Authentication checks
async