1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-12-04 20:11:55 +01:00
Commit Graph

113 Commits

Author SHA1 Message Date
Rob Ede
e2bf504055
feat(session): use real async traits (#365) 2024-01-04 04:10:46 +00:00
Rob Ede
ecd2016c09
use standard attributes for all crates 2023-11-03 19:46:12 +00:00
Rob Ede
9a7113028e
chore(actix-identity): prepare release 0.6.0 2023-09-16 03:29:31 +01:00
Rob Ede
9e31f5b306
chore(actix-session): prepare release 0.8.0 2023-09-16 03:28:31 +01:00
Rob Ede
aaedb9c625
MSRV 1.68 (#328) 2023-09-16 00:30:38 +01:00
Rob Ede
75386f4a1d
ensure docs.rs builds all crates with all features 2023-04-11 12:22:28 +01:00
Rob Ede
77ee27b4ae
inline workspace package properties
msrv needs to be 1.64
2023-03-23 11:40:54 +00:00
Rob Ede
ad1f15eb18
centralize msrv and edition specs 2023-03-22 21:17:30 +00:00
Rob Ede
8a9c604c03
update msrv to 1.60
promted by prost 0.11.8
2023-03-22 21:13:56 +00:00
Rob Ede
218f18e69d
fix default features attributes 2023-03-22 20:51:14 +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
f8a1165d10
fix manifest 2023-01-07 01:17:45 +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
Rob Ede
da0a806e8d
clippy 2022-09-25 21:08:36 +01:00
Rob Ede
1561bda822
apply imports_granularity fmt rule 2022-09-11 21:55:40 +01:00
Rob Ede
7d932cd540
bump msrv to 1.59 2022-08-28 20:30:32 +01:00
Rob Ede
07c5176bd0
align descriptions 2022-07-21 03:07:06 +01:00
Rob Ede
4d2f4d58b4
clippy 2022-07-21 00:07:49 +01:00
Rob Ede
553c2bfb92
prepare actix-identity release 0.5.2 2022-07-19 01:33:53 +01:00
Luca Palmieri
1089faaf93
[actix-identity] Fix visit deadline (#263) 2022-07-19 01:31:31 +01:00
Rob Ede
1cc37c371e
prepare actix-identity release 0.5.1 2022-07-11 18:07:50 +01:00
Rob Ede
d853c115b6
trim unnecessary identity deps (#259)
* trim unnecessary identity deps

* update changelog
2022-07-11 18:07:26 +01:00
Rob Ede
603215095a
prepare actix-identity release 0.5.0 2022-07-11 13:39:14 +01:00
Luca Palmieri
d3fb564380
Add changelog for actix-identity (#258) 2022-07-11 12:46:49 +01:00
Rob Ede
9bc014b96f
forbid unsafe in all crates 2022-07-09 20:05:47 +01:00
Rob Ede
c52ea7a5d2
prepare actix-session release 0.7.0 2022-07-09 19:03:28 +01:00
Luca Palmieri
b1cea64795
Rebuild actix-identity on top of actix-session (#246)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-07-09 19:00:15 +01:00
Yuki Okushi
3c48e00e7a
Bump up MSRV to 1.57 (#256) 2022-06-22 20:42:46 +09:00
Luca Palmieri
8fd1772d5e
Consistent import formatting (#237) 2022-03-29 11:46:13 +01:00
Rob Ede
2417549b35
clippy 2022-03-15 18:04:13 +00:00
Rob Ede
12f6db3755
tweak docs 2022-03-01 04:23:51 +00:00
nerix
673b77a765
docs(identity): clarify policy creation (#198) 2022-03-01 04:21:18 +00:00
Rob Ede
2e86fb9822
prepare actix-identity release 0.4.0 2022-03-01 04:13:56 +00:00
Rob Ede
73a5ae98b6
update actix-web dependency to 4.0 2022-02-25 23:05:11 +00:00
Rob Ede
f9beeecaf6
prepare actix-identity release 0.4.0-beta.9 2022-02-07 02:52:24 +00:00
Rob Ede
ab3615b8d5
relax body bounds (#223) 2022-02-07 02:30:26 +00:00
Rob Ede
323d01fcca
bump actix-web to 4.0.0-rc.1 2022-02-03 22:33:47 +00:00
Rob Ede
bb900a41fc
prepare actix-identity release 0.4.0-beta.8 2022-01-21 20:43:39 +00:00
Rob Ede
4e72e3d8ec
update actix-identity to aw4b21 2022-01-21 20:42:58 +00:00
Rob Ede
88859af6a5
prepare actix-identity release 0.4.0-beta.7 2021-12-29 10:25:17 +00:00
Rob Ede
0d12201073
update to actix web v4 beta 18 (#218) 2021-12-29 10:22:56 +00:00
Rob Ede
92c9601850
bump msrv to 1.54 2021-12-29 09:42:31 +00:00
Rob Ede
6ca36b5d53
fixup changelogs 2021-12-29 09:36:12 +00:00
Luca Palmieri
14a622092d
Update to actix-web beta.17 (#217) 2021-12-29 09:25:52 +00:00
Rob Ede
6676a50944
actix-web beta 15 updates (#216) 2021-12-18 03:37:23 +00:00
Rob Ede
e83c488544
prepare actix-identity release 0.4.0-beta.5 2021-12-12 19:13:16 +00:00
Rob Ede
74ec115161
migrate to actix-web beta 14 (#209) 2021-12-11 16:05:21 +00:00