mirror of
https://github.com/actix/actix-extras.git
synced 2025-03-20 11:55:17 +01:00
* Add IdentityError to actix-identity crate. In order to let crates in the actix web ecosystem interact correctly with `actix_web::Error`, this commit introduces its own error type, replacing the previous usage of `anyhow::Error`. * Mend some clippy warnings on IdentityError. * Split identity error into more granular versions. - `MissingIdentityError` occurs whenever we attempt to gather information about an identity from a session, and fail. - `LoginError` occurs whenever we attempt to login via an identity, and fail. * Feedback for identity error implementation. - `IdentityError` -> `GetIdentityError` - Move error messages into Display impl where appropriate - Split `id` and `get_identity` errors into two types - Implement `source` on custom errors * Expand identity error types with struct markers. In order to get a little more future compatibility and reduce abstraction leaking, this commit introduces some contextual structs to our identity errors package. * Improve doc message for SessionExpiryError. Co-authored-by: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> * Improve identity error docs and messaging. Co-authored-by: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> * Expand LostIdentityError with placeholder. Adds a placeholder unit struct to the LostIdentityError variant of GetIdentityError, which should let us expand on that variant with extra context later if we like. * Add From coercion for LostIdentityError. Improve the ergonomics of using the LostIdentityError unit struct. * Update Cargo.toml * Update CHANGES.md * expose identity error module * fix error impl Co-authored-by: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
37 lines
1.1 KiB
TOML
37 lines
1.1 KiB
TOML
[package]
|
|
name = "actix-identity"
|
|
version = "0.5.2"
|
|
authors = [
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
"Luca Palmieri <rust@lpalmieri.com>",
|
|
]
|
|
description = "Identity management for Actix Web"
|
|
keywords = ["actix", "auth", "identity", "web", "security"]
|
|
homepage = "https://actix.rs"
|
|
repository = "https://github.com/actix/actix-extras.git"
|
|
license = "MIT OR Apache-2.0"
|
|
edition = "2018"
|
|
|
|
[lib]
|
|
name = "actix_identity"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
actix-service = "2"
|
|
actix-session = "0.7"
|
|
actix-utils = "3"
|
|
actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies"] }
|
|
|
|
futures-core = "0.3.7"
|
|
serde = { version = "1", features = ["derive"] }
|
|
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
|
|
|
|
[dev-dependencies]
|
|
actix-http = "3"
|
|
actix-web = { version = "4", default_features = false, features = ["macros", "cookies", "secure-cookies"] }
|
|
actix-session = { version = "0.7", features = ["redis-rs-session", "cookie-session"] }
|
|
|
|
env_logger = "0.10"
|
|
reqwest = { version = "0.11", default_features = false, features = ["cookies", "json"] }
|
|
uuid = { version = "1", features = ["v4"] }
|