1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00
Commit Graph

3766 Commits

Author SHA1 Message Date
Jacobtread
713b157fd4
Corrected actix-form-data community crate details (#314) 2023-01-13 10:43:52 +00:00
Rob Ede
bf49b39740
use secure tokio version range
see RUSTSEC-2023-0001

part of actix/actix-web#2962
2023-01-10 09:03:27 +00:00
Rob Ede
441d604c00
derive identity error impls 2023-01-07 02:22:13 +00:00
Joseph McCormick
1ed893a08c
Feature: Add IdentityError to actix-identity crate. (#296)
* 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>
2023-01-07 02:05:12 +00:00
Rob Ede
708aa945dc
workaround msrv issues fix 2023-01-07 01:57:03 +00:00
Rob Ede
9be4f1ff73
workaround dev dep msrv issues 2023-01-07 01:38:07 +00:00
Rob Ede
f8a1165d10
fix manifest 2023-01-07 01:17:45 +00:00
Rob Ede
d9175a0399
update base64 dep to 0.20 2023-01-07 01:16:14 +00:00
Rob Ede
fe4d3d366d
Update redis dependency to 0.22 2023-01-07 01:15:26 +00:00
Rob Ede
1036f54fd0
update redis-async to 0.14 2023-01-07 01:09:34 +00:00
Rob Ede
e9428ba261
update env_logger dev dep 2023-01-07 01:08:01 +00:00
Rob Ede
779860b664
clippy 2023-01-07 01:04:16 +00:00
Rob Ede
6848312467
prettier markdown changelogs 2023-01-07 01:02:02 +00:00
Peihao Yang
8c509151f1
add sentinel middleware to community crates (#312) 2023-01-05 14:36:31 +00:00
Yuki Okushi
1774b8a36e
Fix GHA deprecation warnings (#301) 2022-12-01 10:45:31 +00:00
aalhitennf
9508be94d5
Update README.md (#304) 2022-11-12 19:52:29 +00:00
aalhitennf
8e76c6c628
add bincode extractor lib to community crates (#303) 2022-11-12 13:26:16 +00:00
Even O. Rogstadkjærnet
8fd166435f
Add secure field to removal cookie (#300)
Closes https://github.com/actix/actix-extras/issues/299
2022-11-08 09:29:23 +00:00
Rob Ede
1ac325ab79
fix cors changelog 2022-10-30 16:28:21 +00:00
Rob Ede
b95ce3a210
prepare actix-cors release 0.6.4 2022-10-30 16:25:52 +00:00
Rob Ede
ac444ca798
add support for private network access cors header (#297)
closes #294
2022-10-28 23:44:21 +01:00
Yuki Okushi
fb8a814acb
session: Fix a typo in a link to actix-redis (#293) 2022-10-15 12:36:59 +01:00
Rob Ede
da0a806e8d
clippy 2022-09-25 21:08:36 +01:00
Duy Do
d28ab6eaa1
CORS origin does not end with / (#291) 2022-09-22 11:46:24 +00:00
Rob Ede
a2c5cbd637
fix cors changelog 2022-09-22 00:25:48 +01:00
Rob Ede
e6ef190510
prepare actix-cors release 0.6.3 2022-09-22 00:24:38 +01:00
CapableWeb
3b5682c860
Add block_on_origin_mismatch option to middleware (#287)
Co-authored-by: CapableWeb <capableweb@domain.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-21 23:22:20 +00:00
Moritz Hedtke
82a100d96c
Add note for accessing session state in stream. (#285) 2022-09-21 12:51:45 +00:00
Marko Malenic
d98ebf2bdf
Update Cors function documentation to match behaviour (#289)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-21 09:15:54 +00:00
Rob Ede
1561bda822
apply imports_granularity fmt rule 2022-09-11 21:55:40 +01:00
Rob Ede
339b81e843
prepare actix-session release 0.7.2 2022-09-11 21:13:20 +01:00
Rob Ede
eb3660a772
set same-site attribute when clearing session cookie (#284)
fixes #282
2022-09-11 21:11:33 +01:00
Rob Ede
9a3b410409
prepare actix-limitation release 0.4.0 2022-09-11 00:06:57 +01:00
Raphael C
32313c0af6
Limitation: custom key from closure (#281)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-10 23:02:54 +00:00
Raphael C
a623c50e9c
Limitation: display and handle client error (#280)
* feat(limitation): display and handle client error

* feat(limitation): handle other count errors

* feat: add middleware errors catch changes to changelog

Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-08-28 20:49:14 +01:00
Rob Ede
7d932cd540
bump msrv to 1.59 2022-08-28 20:30:32 +01:00
Rob Ede
ffe122b76e
prepare actix-protobuf release 0.9.0 2022-08-24 18:07:47 +01:00
Rob Ede
1e682e7a59
update to prost 0.11 (#279)
* updated to prost 0.11 and added application/x-protobuf

* updated derive-more, prost, futures-util versions

* updated Changelog and a small fix in Cargo.toml

* cargo fmt

* bumped version to 0.8.1

* removed version bump

* add back intentional patch versions

Co-authored-by: Ahmed Masud <ahmed.masud@saf.ai>
2022-08-24 18:07:13 +01:00
Rob Ede
e61dbae860
rename AtError => Error (#275)
* refactor(settings)!: rename AtError => Error

and remove AtResult from public API

* update changelog

* recover from file metadata errors
2022-08-10 09:13:34 +01:00
Rob Ede
a325f5dd02
add some doc examples to -session 2022-08-09 01:03:28 +01:00
Rob Ede
bad6159516
prepare actix-cors release 0.6.2 2022-08-07 20:57:09 +01:00
Rob Ede
7c3c9357e0
fix expose all headers (#273)
* fix expose all headers

* update changelog
2022-08-07 20:56:33 +01:00
Rob Ede
bcb8dbe1fc
add config file to example 2022-07-31 20:26:40 +01:00
Rob Ede
983746f106
prepare actix-settings release 0.6.0 2022-07-31 20:13:27 +01:00
Rob Ede
b054733854
document settings crate (#271) 2022-07-31 20:12:19 +01:00
Rob Ede
ab3f591307
fmt 2022-07-31 15:34:52 +01:00
Rob Ede
c08cd8a23a
add standard crate lints 2022-07-31 15:33:22 +01:00
Rob Ede
da32c1bb49
rename settings modules 2022-07-31 15:30:50 +01:00
Rob Ede
90766e5d68
use panics in tests for better diagnostics 2022-07-31 15:18:23 +01:00
Rob Ede
f678842e46
modululize -settings 2022-07-31 15:10:22 +01:00