| Crates.io | actix-auth |
| lib.rs | actix-auth |
| version | 0.1.0 |
| created_at | 2020-01-09 06:32:03.644807+00 |
| updated_at | 2020-01-09 06:32:03.644807+00 |
| description | actix auth is a cookie auth macro |
| homepage | |
| repository | https://github.com/Lomect/actix-auth.git |
| max_upload_size | |
| id | 196846 |
| size | 6,532 |
actix auth macro
actix-web
actix-identity
actix auth must have a params: _id: Identity
actix auth have a string by let Some(ident) = identity.identity();.
use actix_auth::login_required;
#[login_required]
pub async fn index(_id: Identity) -> HttpResponse {
HttpResponse::Ok().json(ident)
}