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

215 Commits

Author SHA1 Message Date
Chiu-Hsiang Hsu
545873b5b2
update actix-web dependencies to v4 beta.10 (#203)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-10-21 14:10:00 +01:00
Rob Ede
627fe96be0
bump msrv to 1.52.1 2021-10-19 01:49:39 +01:00
Luca Palmieri
d0f2075ce9
Implement Clone for CookieSession. (#201) 2021-10-18 13:03:14 +01:00
Rob Ede
e10937103e
fmt with new width 2021-08-30 23:27:44 +01:00
Rob Ede
c6f579790f
bump msrv to 1.51 2021-08-30 23:10:36 +01:00
Rob Ede
44c7b07ce2
prepare second beta round (#189) 2021-06-27 07:28:26 +01:00
Rob Ede
20ef05c36e
fix doctest ci (#188) 2021-06-27 07:02:38 +01:00
Rob Ede
d0f0fb474b
fixup other cargo manifests 2021-04-02 11:44:18 +01:00
Rob Ede
0ba14f786e
prepare session release 0.5.0-beta.1 2021-04-02 11:31:30 +01:00
Rob Ede
fc6563a019
various session api improvements (#170) 2021-03-23 22:35:27 +00:00
Rob Ede
23912afd49
refactor identity (#168) 2021-03-23 05:05:03 +00:00
Rob Ede
c7df62d0b6
simplify ci like actix-web (#165) 2021-03-22 11:46:02 +00:00
Rob Ede
c8f1d9671c
add upgrade -web hints in changelogs 2021-03-22 05:24:35 +00:00
Rob Ede
7d0df351e0
normalize time deps to secure versions 2021-03-22 05:20:10 +00:00
Rob Ede
2254a429d4
use forward_ready for service definitions 2021-03-22 05:18:59 +00:00
Andrey Kutejko
ca85f6b245
Update dependencies (Tokio 1.0) (#144) 2021-03-21 22:50:26 +00:00
Rob Ede
5a72dd33d5
session, redis, and httpauth pre-v4 releases (#162) 2021-03-21 09:38:29 +00:00
Quentin Kniep
936a116264
Fix purge from other paths than root (#129)
Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-12-04 03:52:48 +09:00
Yuki Okushi
f970d90894
Use re-exported bytes items from instead of using them directly (#139) 2020-12-01 10:21:56 +09:00
Francois Stephany
0f7a147323
Unify homepage/repository urls in Cargo manifests (#111) 2020-10-03 01:32:01 +01:00
FallenWarrior2k
bb8120a8c0
Update Session::set_session to take IntoIterator (#105) 2020-09-22 00:04:21 +01:00
Rob Ede
7a26d99c1a
lint and readme cleanup (#97) 2020-09-12 00:52:55 +01:00
Rob Ede
4a546718aa
prepare v3 compatible releases (#95) 2020-09-11 21:22:55 +01:00
Rob Ede
bad5f32a68
update all packages to use actix-web v3 (#94) 2020-09-11 16:26:15 +01:00
Yuki Okushi
2ae3c80548
Use OR instead of deprecated / in license field (#80) 2020-07-14 11:16:32 +01:00
Yuki Okushi
2a20ce4568
Replace deprecated from_master with derive_from (#82) 2020-07-14 11:15:30 +01:00
Yuki Okushi
bd963fb7d1
Fix clippy warnings 2020-07-07 03:54:18 +09:00
Rob Ede
027f045340
exclude default -web features where not needed (#70) 2020-06-18 11:22:14 +01:00
LJ
e03544cb0d
Allow for session cookies to be lazily created (#39) 2020-05-25 01:27:49 +01:00
Yuki Okushi
923cb7bcd2
Bump up MSRV to 1.40.0 2020-05-17 11:34:00 +09:00
Yuki Okushi
446b920d96
Replace deprecated methods with now_utc() 2020-05-09 08:07:31 +09:00
Pieter Frenssen
ede715374b
Clarify how to use Session::set_session() (#41)
* Clarify in examples how to use Session::set_session().

* Add a doc example for Session::set_session().
2020-04-08 01:49:58 +09:00
Yuki Okushi
00f520cd2d
Fix clippy warnings 2020-03-18 06:34:32 +09:00
Yuki Okushi
483f641165
Bump up to 0.4.0-alpha.1 2020-03-15 07:01:21 +09:00
Yuki Okushi
510be85629
Fix style 2020-03-15 06:59:41 +09:00
Yuki Okushi
bc36cc1159
Minimize futures dependency 2020-03-15 06:58:47 +09:00
Yuki Okushi
30ee6e0b4c
session: Update actix-web dependency to 3.0.0-alpha.1 2020-03-13 06:04:07 +09:00
Björn Steinbrink
d849157411 Update Session doc to refer to UserSession instead of RequestSession 2020-02-11 16:25:53 +01:00
Rob Ede
8ab2229032
add new crates to workspace 2020-01-30 02:06:00 +00:00
Rob Ede
90e00f7344
fix badge links 2020-01-30 01:50:18 +00:00
Rob Ede
cfb436a363
unify {cors,identity,session} readmes 2020-01-30 01:42:01 +00:00
Andrey Kutejko
664f9a8b2d
Long lasting auto-prolonged session (#1292)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-29 10:26:39 +09:00
kevinpoitra
e634e64847 Upgrade time to 0.2.5 (#1254)
* Use `OffsetDateTime` instead of `PrimitiveDateTime`

* Parse time strings with `PrimitiveDateTime::parse` instead of `OffsetDateTime::parse`

* Remove unused `time` dependency from actix-multipart

* Fix a few errors with time related tests from the `time` upgrade

* Implement logic to convert a RFC 850 two-digit year into a full length year, and organize time parsing related functions

* Upgrade `time` to 0.2.2

* Correctly parse C's asctime time format using time 0.2's new format patterns

* Update CHANGES.md

* Use `time` without any of its deprecated functions

* Enforce a UTC time offset when converting an `OffsetDateTime` into a Header value

* Use the more readable version of `Duration::seconds(0)`, `Duration::zero()`

* Remove unneeded conversion of time::Duration to std::time::Duration

* Use `OffsetDateTime::as_seconds_f64` instead of manually calculating the amount of seconds from nanoseconds

* Replace a few additional instances of `Duration::seconds(0)` with `Duration::zero()`

* Truncate any nanoseconds from a supplied `Duration` within `Cookie::set_max_age` to ensure two Cookies with the same amount whole seconds equate to one another

* Fix the actix-http:🍪:do_not_panic_on_large_max_ages test

* Convert `Cookie::max_age` and `Cookie::expires` examples to `time` 0.2

Mainly minor  changes. Type inference can be used alongside the new
`time::parse` method, such that the type doesn't need to be specified.
This will be useful if a refactoring takes place that changes the type.
There are also new macros, which are used where possible.

One change that is not immediately obvious, in `HttpDate`, there was an
unnecessary conditional. As the time crate allows for negative durations
(and can perform arithmetic with such), the if/else can be removed
entirely.

Time v0.2.3 also has some bug fixes, which is why I am not using a more
general v0.2 in Cargo.toml.

v0.2.3 has been yanked, as it was backwards imcompatible. This version
reverts the breaking change, while still supporting rustc back to
1.34.0.

* Add missing `time::offset` macro import

* Fix type confusion when using `time::parse` followed by `using_offset`

* Update `time` to 0.2.5

* Update CHANGES.md

Co-authored-by: Jacob Pratt <the.z.cuber@gmail.com>
2020-01-28 20:44:22 +09:00
Nikolay Kim
f86ce0390e allow to specify multi pattern for resources 2019-12-25 20:14:44 +04:00
Nikolay Kim
6a0cd2dced Rename HttpServer::start() to HttpServer::run() 2019-12-22 17:12:22 +04:00
Nikolay Kim
c7f3915779 update actix-service dep 2019-12-22 16:39:25 +04:00
Nikolay Kim
48476362a3 update changes 2019-12-20 17:59:34 +06:00
Nikolay Kim
8b8a9a995d bump ver 2019-12-20 17:36:48 +06:00
tglman
fbbb4a86e9 feat: add access to the session also from immutable references (#1225) 2019-12-20 13:59:07 +06:00
Nikolay Kim
fac6dec3c9 update deps 2019-12-13 12:36:15 +06:00
Nikolay Kim
131c897099 upgrade to actix-net release 2019-12-11 19:20:20 +06:00
Nikolay Kim
4a8a9ef405 update tests and clippy warnings 2019-12-08 12:31:16 +06:00
Nikolay Kim
7dd676439c update changes for actix-session 2019-12-06 11:24:25 +06:00
tglman
fbead137f0 feat: add access to UserSession from RequestHead (#1164)
* feat: add access to UserSession from RequestHead

* add test case for session from RequestHead and changes entry for the new feature
2019-12-06 11:21:43 +06:00
Nikolay Kim
205a964d8f upgrade to tokio 0.2 2019-12-05 23:35:43 +06:00
Nikolay Kim
b45c6cd66b replace hashbrown with std hashmap 2019-12-04 18:33:43 +06:00
Nikolay Kim
14075ebf7f use released versions of actix-net 2019-12-02 23:33:39 +06:00
Nikolay Kim
4dc31aac93 use actix_rt::test for test setup 2019-11-26 11:25:50 +06:00
Nikolay Kim
c1c44a7dd6 upgrade derive_more 2019-11-25 17:59:14 +06:00
Nikolay Kim
57981ca04a update tests to async handlers 2019-11-22 11:49:35 +06:00
Nikolay Kim
60ada97b3d migrate actix-session 2019-11-21 16:02:17 +06:00
Nikolay Kim
ff62facc0d disable unmigrated crates 2019-11-21 16:02:17 +06:00
Nikolay Kim
3127dd4db6 migrate actix-web to std::future 2019-11-21 16:02:17 +06:00
Nikolay Kim
2a2d7f5768 nightly clippy warnings 2019-07-17 15:53:51 +06:00
Nikolay Kim
4092c7f326 clippy warnings 2019-07-17 15:08:30 +06:00
Nikolay Kim
7b1dcaffda cleanup deprecation warning for Box<dyn> 2019-07-17 11:44:39 +06:00
Nikolay Kim
f410f3330f prepare actix-session release 2019-07-08 23:25:51 +06:00
dowwie
1fdd77bffa reworded session info in CHANGES 2019-07-03 07:56:50 -04:00
dowwie
2d424957fb updated version in Cargo to 0.2 2019-07-03 07:50:45 -04:00
dowwie
dabc4fe00b updated actix-session/CHANGES with info 2019-07-03 07:50:11 -04:00
dowwie
099a8ff7d8 updated session cookie to support login, logout, changes 2019-07-01 15:26:19 -04:00
dowwie
0e05b37082 updated cookie session to update on change 2019-06-29 14:24:02 -04:00
Darin
93855b889a
Merge branch 'master' into master 2019-06-24 18:41:48 -04:00
dowwie
fa7e0fe6df updated cookie.rs req to get_changes 2019-06-24 18:40:14 -04:00
Nikolay Kim
686e5f1595 update deps 2019-06-16 22:10:22 +06:00
dowwie
32a66a99bf reverting change to get_session due to side effects 2019-06-13 09:19:03 -04:00
dowwie
ca4ed0932e made Session::get_session public 2019-06-13 08:59:59 -04:00
dowwie
65732197b8 modified so as to consider unanticipated state changes 2019-06-12 10:11:38 -04:00
dowwie
959eef05ae updated actix-session to support login and logout functionality (renew and purge) 2019-06-12 08:03:27 -04:00
Nikolay Kim
4a179d1ae1 prepare actix-session release 2019-06-03 10:52:43 +06:00
Igor Gnatenko
a780ea10e9 Guard cookie mod by cookie-session feature (#883)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2019-06-03 10:30:30 +06:00
Nikolay Kim
a1b40f4314 add license files 2019-06-01 17:25:29 +06:00
Nikolay Kim
8ff56d7cd5 prepare actix-session release 2019-05-18 11:20:09 -07:00
Nikolay Kim
5a90e33bcc update deps 2019-05-12 12:01:24 -07:00
Nikolay Kim
3bb081852c prep actix-session release 2019-05-12 10:53:21 -07:00
Nikolay Kim
07b9707ca1 prepare actix-http release 2019-05-12 09:56:55 -07:00
Nikolay Kim
df08baf67f update actix-net dependencies 2019-05-12 08:34:51 -07:00
Nikolay Kim
24bd5b1344 update readmes 2019-04-29 20:47:21 -07:00
Nikolay Kim
8db6b48a76 update version 2019-04-28 09:09:18 -07:00
Nikolay Kim
ffd2c04cd3 Add helper trait UserSession which allows to get session for ServiceRequest and HttpRequest 2019-04-28 09:08:51 -07:00
Nikolay Kim
7e480ab2f7 beta.1 release 2019-04-20 21:16:51 -07:00
Nikolay Kim
7292d0b696 drop chrono and use i64 for max age 2019-04-19 17:23:17 -07:00
Nikolay Kim
85b598a614 add cookie session test 2019-04-17 11:02:03 -07:00
Nikolay Kim
d7040dc303 alpha.6 release 2019-04-14 08:09:32 -07:00
Nikolay Kim
ee33f52736 make extractor config type explicit 2019-04-13 16:35:25 -07:00
Nikolay Kim
4f30fa9d46 Remove generic type for request payload, always use default 2019-04-13 14:50:54 -07:00
Nikolay Kim
1f2b15397d prepare alpha5 release 2019-04-12 14:00:45 -07:00
Nikolay Kim
43d325a139 allow to specify upgrade service 2019-04-08 14:51:16 -07:00
Nikolay Kim
53da55aa3c alpha4 release 2019-04-07 23:42:05 -07:00
Nikolay Kim
75b213a6f0 refactor FromRequest trait 2019-04-07 14:43:07 -07:00
Nikolay Kim
442f5057dd alpha.3 release 2019-04-02 21:49:31 -07:00
Nikolay Kim
4227cddd30 fix dev dependencies 2019-04-02 15:00:10 -07:00
Nikolay Kim
a20b9fd354 prepare aplha2 release 2019-03-29 22:06:14 -07:00
Nikolay Kim
d846328f36 fork cookie crate 2019-03-29 21:13:39 -07:00
Nikolay Kim
9c198a0d29 alpha.1 release 2019-03-28 13:46:26 -07:00
Nikolay Kim
9451ba71f4 update cargo files 2019-03-26 12:50:51 -07:00
Nikolay Kim
86a21c956c rename .middleware to .wrap 2019-03-25 13:02:10 -07:00
Nikolay Kim
1970c99522 add session test 2019-03-24 20:21:20 -07:00
Nikolay Kim
e37e81af0b simplify Payload extractor 2019-03-24 17:00:59 -07:00
Nikolay Kim
0f0d6b65ca update service request/response location 2019-03-10 17:16:28 -07:00
Nikolay Kim
79875ea039 update deps 2019-03-10 14:22:53 -07:00
Nikolay Kim
85664cc6f7 update deps 2019-03-09 14:56:18 -08:00
Nikolay Kim
54678308d0 propogate app config with http request; add tests for url_for 2019-03-09 14:06:24 -08:00
Nikolay Kim
fe22e83144 refactor service registration process; unify services and resources 2019-03-06 15:47:15 -08:00
Nikolay Kim
0cf73f1a04 move session to different folder 2019-03-05 18:52:29 -08:00