1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +02:00
Commit Graph

134 Commits

Author SHA1 Message Date
fc4b656c3b chore: address clippy lints 2025-02-23 18:29:35 +00:00
0f35de7da1 build(deps): update derive_more requirement from 1 to 2 (#502)
Updates the requirements on [derive_more](https://github.com/JelteF/derive_more) to permit the latest version.
- [Release notes](https://github.com/JelteF/derive_more/releases)
- [Changelog](https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JelteF/derive_more/compare/v1.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: derive_more
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 17:17:28 +00:00
64931189c7 Improve logout example (#496)
The current example for logout is not show a complete example.

I have added a couple lines to handle the case where a logged out user tries to logout again.
2025-01-16 11:56:12 +00:00
105932706d chore: address clippy lints 2024-12-29 16:19:36 +00:00
21680e0ebe Include cookie expiration and ttl in the identity example (#473) 2024-10-07 22:57:22 +00:00
a3211b73d3 chore(actix-identity): prepare release 0.8.0 2024-09-12 15:07:36 -04:00
48646d1bd3 build(deps): update derive_more to v1.0 (#458)
* build(deps): update derive_more to v1.0

* chore: remove overspecified deps

* chore: use from the derive module

* chore: restore unrelated version reqs

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-08-18 14:21:56 +00:00
0c0d13be12 docs: update session dependants changelogs 2024-08-07 01:05:57 +01:00
f2339971cd chore(actix-session): prepare release 0.10.0 2024-08-07 00:57:54 +01:00
517e72f248 build(deps): update reqwest requirement from 0.11 to 0.12 (#454)
* build(deps): update reqwest requirement from 0.11 to 0.12

Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest) to permit the latest version.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.0...v0.12.5)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: use reqwest::StatusCode

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-08-06 14:19:02 +00:00
52e58610e4 chore: share repo and website 2024-06-20 02:18:37 +01:00
023158cfa8 chore: move lints to manifest 2024-06-20 02:14:35 +01:00
abf75eeb06 build(deps): update redis requirement from 0.24 to 0.25 (#412)
* build(deps): update redis requirement from 0.24 to 0.25

Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version.
- [Release notes](https://github.com/redis-rs/redis-rs/releases)
- [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.24.0...redis-0.25.0)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor(session): rename TLS features

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-06-09 22:29:13 +00:00
db2193b8c5 chore: bump futures-* deps 2024-03-02 21:29:40 +00:00
74c8545363 chore(actix-identity): prepare release 0.7.1 2024-03-02 18:32:58 +00:00
5414e2655b Add the ability to change the keys (#348)
* feat: add the ability to change the session key store in redis

* feat: change everywhere the constants are used

* refactor: add formatting with cargo fmt

---------

Co-authored-by: Dany Gagnon <danygagnon@Danys-MacBook-Pro.local>
2024-02-15 10:14:17 +00:00
daffc24245 Misc tidy up (#400) 2024-02-14 01:19:29 +00:00
254d4084a9 build(deps): update env_logger requirement from 0.10 to 0.11 (#388)
Updates the requirements on [env_logger](https://github.com/rust-cli/env_logger) to permit the latest version.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 15:56:30 +00:00
89bf63e1ef chore(actix-identity): prepare release 0.7.0 2024-01-11 04:44:02 +00:00
8b4e8ea34e chore(actix-session): prepare release 0.9.0 2024-01-11 04:27:56 +00:00
320cbebc7e chore: fmt markdowns 2024-01-06 21:08:09 +00:00
e2bf504055 feat(session): use real async traits (#365) 2024-01-04 04:10:46 +00:00
ecd2016c09 use standard attributes for all crates 2023-11-03 19:46:12 +00:00
9a7113028e chore(actix-identity): prepare release 0.6.0 2023-09-16 03:29:31 +01:00
9e31f5b306 chore(actix-session): prepare release 0.8.0 2023-09-16 03:28:31 +01:00
aaedb9c625 MSRV 1.68 (#328) 2023-09-16 00:30:38 +01:00
75386f4a1d ensure docs.rs builds all crates with all features 2023-04-11 12:22:28 +01:00
77ee27b4ae inline workspace package properties
msrv needs to be 1.64
2023-03-23 11:40:54 +00:00
ad1f15eb18 centralize msrv and edition specs 2023-03-22 21:17:30 +00:00
8a9c604c03 update msrv to 1.60
promted by prost 0.11.8
2023-03-22 21:13:56 +00:00
218f18e69d fix default features attributes 2023-03-22 20:51:14 +00:00
441d604c00 derive identity error impls 2023-01-07 02:22:13 +00:00
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
f8a1165d10 fix manifest 2023-01-07 01:17:45 +00:00
e9428ba261 update env_logger dev dep 2023-01-07 01:08:01 +00:00
779860b664 clippy 2023-01-07 01:04:16 +00:00
6848312467 prettier markdown changelogs 2023-01-07 01:02:02 +00:00
da0a806e8d clippy 2022-09-25 21:08:36 +01:00
1561bda822 apply imports_granularity fmt rule 2022-09-11 21:55:40 +01:00
7d932cd540 bump msrv to 1.59 2022-08-28 20:30:32 +01:00
07c5176bd0 align descriptions 2022-07-21 03:07:06 +01:00
4d2f4d58b4 clippy 2022-07-21 00:07:49 +01:00
553c2bfb92 prepare actix-identity release 0.5.2 2022-07-19 01:33:53 +01:00
1089faaf93 [actix-identity] Fix visit deadline (#263) 2022-07-19 01:31:31 +01:00
1cc37c371e prepare actix-identity release 0.5.1 2022-07-11 18:07:50 +01:00
d853c115b6 trim unnecessary identity deps (#259)
* trim unnecessary identity deps

* update changelog
2022-07-11 18:07:26 +01:00
603215095a prepare actix-identity release 0.5.0 2022-07-11 13:39:14 +01:00
d3fb564380 Add changelog for actix-identity (#258) 2022-07-11 12:46:49 +01:00
9bc014b96f forbid unsafe in all crates 2022-07-09 20:05:47 +01:00
c52ea7a5d2 prepare actix-session release 0.7.0 2022-07-09 19:03:28 +01:00