mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 15:51:06 +01:00
1ed893a08c
* 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> |
||
---|---|---|
.cargo | ||
.github | ||
actix-cors | ||
actix-identity | ||
actix-limitation | ||
actix-protobuf | ||
actix-redis | ||
actix-session | ||
actix-settings | ||
actix-web-httpauth | ||
.editorconfig | ||
.gitignore | ||
Cargo.toml | ||
clippy.toml | ||
codecov.yml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md | ||
rustfmt.toml |
actix-extras
A collection of additional crates supporting Actix Web.
Crates by @actix
Crate | ||
---|---|---|
actix-cors | Cross-Origin Resource Sharing (CORS) controls. | |
actix-identity | Identity management. | |
actix-limitation | Rate-limiting using a fixed window counter for arbitrary keys, backed by Redis. | |
actix-protobuf | Protobuf payload extractor. | |
actix-redis | Actor-based Redis client. | |
actix-session | Session management. | |
actix-settings | Easily manage Actix Web's settings from a TOML file and environment variables. | |
actix-web-httpauth | HTTP authentication schemes. |
Community Crates
These crates are provided by the community.
Crate | ||
---|---|---|
actix-web-lab | Experimental extractors, middleware, and other extras for possible inclusion in Actix Web. | |
actix-multipart-extract | Better multipart form support for Actix Web. | |
actix-form-data | Rate-limiting backed by form-data. | |
actix-governor | Rate-limiting backed by governor. | |
actix-casbin | Authorization library that supports access control models like ACL, RBAC & ABAC. | |
actix-ip-filter | IP address filter. Supports glob patterns. | |
actix-web-static-files | Static files as embedded resources. | |
actix-web-grants | Extension for validating user authorities. | |
aliri_actix | Endpoint authorization and authentication using scoped OAuth2 JWT tokens. | |
actix-web-flash-messages | Support for flash messages/one-time notifications in actix-web . |
|
awmp | An easy to use wrapper around multipart fields for Actix Web. | |
tracing-actix-web | A middleware to collect telemetry data from applications built on top of the actix-web framework. | |
actix-ws | Actor-less WebSockets for the Actix Runtime. | |
actix-hash | Hashing utilities for Actix Web. | |
actix-bincode | Bincode payload extractor for Actix Web | |
sentinel-actix | General and flexible protection for Actix Web |
To add a crate to this list, submit a pull request.