Maciej Piechotka
60fa0d5427
Store visit and login timestamp in the identity cookie ( #502 )
...
This allows to verify time of login or last visit and therfore limiting
the danger of leaked cookies.
2019-04-24 12:49:56 -07:00
Nikolay Kim
7292d0b696
drop chrono and use i64 for max age
2019-04-19 17:23:17 -07:00
Kilerd Chan
791f22bbc8
replate time::Duration
with chrono::Duration
and add max_age_time
method ( #789 )
...
* feat: replate time::Duration with chrono::Duration
* feat: rename max_age method which accepts `Duration` to max_age_time and add new max_age method accepting isize of seconds
* feat: replace `time:Duration` with `chrono:Duration` in repo `actix-http`
2019-04-19 13:54:44 -07:00
Nikolay Kim
7a28b32f6d
Rename test::call_success to test::call_service
2019-04-15 07:44:07 -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
75b213a6f0
refactor FromRequest trait
2019-04-07 14:43:07 -07:00
Nikolay Kim
bc834f6a03
remove some static contraints
2019-04-04 10:59:34 -07:00
Nikolay Kim
bca31eb7ad
remove Deref
2019-04-02 13:35:01 -07:00
Nikolay Kim
d846328f36
fork cookie crate
2019-03-29 21:13:39 -07:00
Nikolay Kim
86a21c956c
rename .middleware to .wrap
2019-03-25 13:02:10 -07:00
Nikolay Kim
b8829bbf22
add identity middleware tests
2019-03-10 17:16:32 -07:00
Nikolay Kim
16c42be4a2
simplify extractor configuration, config is optional now
2019-03-10 10:53:56 -07:00
Nikolay Kim
3a2035a121
fix doc tests
2019-03-09 21:15:26 -08:00
Nikolay Kim
be9031c55e
update doc api
2019-03-09 20:48:05 -08:00
Nikolay Kim
12f0c78091
port identity middleware
2019-03-09 20:40:09 -08:00
Nikolay Kim
2d7293aaf8
copy actix-web2
2019-03-01 22:51:32 -08:00
Julian Tescher
8e354021d4
Add SameSite option to identity middleware cookie ( #581 )
2018-11-07 23:24:06 +03:00
Nikolay Kim
6fd686ef98
cleanup warnings
2018-07-04 21:01:27 +06:00
Nikolay Kim
fec6047ddc
refactor HttpRequest mutability
2018-07-02 23:35:32 +06:00
Nikolay Kim
65ca563579
use read only self for Middleware
2018-06-21 23:06:23 +06:00
Nikolay Kim
0f2aac1a27
remove unneed Send and Sync
2018-06-17 08:32:22 +06:00
Matthijs Brobbel
268c5d9238
Fix typo
2018-06-03 20:28:08 +02:00
Nikolay Kim
a61a1b0efe
Merge branch 'master' into trait-middleware-mut-self
2018-06-02 08:54:00 -07:00
Pascal Hertleif
890a7e70d6
Add missing API docs
...
These were written without much knowledge of the actix-web internals!
Please review carefully!
2018-06-02 15:52:50 +02:00
Josh Leeb-du Toit
9c9eb62031
Update Middleware trait to use &mut self
2018-06-02 16:47:18 +10:00
Nikolay Kim
3f5a39a5b7
cargo fmt
2018-06-01 09:37:14 -07:00
Douman
80965d7a9a
Re-export actix dependency. Closes #260 ( #264 )
...
- Re-export actix's prelude into actix namespace
- Removing implicit dependency on root's actix module
2018-05-31 20:43:14 +03:00
Nikolay Kim
45e9aaa462
rustfmt 0.7
2018-05-17 12:20:20 -07:00
Nikolay Kim
d9a4fadaae
make HttpRequest::extensions() readonly
2018-05-01 09:05:50 -07:00
Nikolay Kim
c72d1381a6
clippy warnings
2018-04-29 09:09:08 -07:00
Nikolay Kim
de49796fd1
clippy warnings; fmt
2018-04-28 22:55:47 -07:00
Nikolay Kim
48b02abee7
fmt
2018-04-18 20:16:29 -07:00
Nikolay Kim
e9bdba57a0
Add identity service middleware
2018-04-18 19:05:24 -07:00