Rob Ede
61f16c609a
fix doc warnings
2023-11-03 20:00:56 +00:00
Rob Ede
ecd2016c09
use standard attributes for all crates
2023-11-03 19:46:12 +00:00
Max Karou
55ace79d64
Implement From<Basic>
for BasicAuth
( #327 )
...
* implement `From<Basic>` for `BasicAuth`
* update changelog
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-09-16 00:27:50 +00:00
Rob Ede
aaedb9c625
MSRV 1.68 ( #328 )
2023-09-16 00:30:38 +01:00
citreae535
2bc16eee18
Update base64
dependency to 0.21 ( #316 )
2023-01-30 16:53:30 +00:00
Rob Ede
779860b664
clippy
2023-01-07 01:04:16 +00:00
Rob Ede
1561bda822
apply imports_granularity fmt rule
2022-09-11 21:55:40 +01:00
Rob Ede
cfd16c5478
clippy
2022-07-21 22:20:48 +01:00
Rob Ede
ff06958b32
improve httpauth ergonomics ( #264 )
...
* improve httpauth ergonomics
* update changelog
* code and docs cleanup
* docs
* docs clean
* remove AuthExtractor trait
* update changelog
2022-07-21 02:50:22 +01:00
Mike Cronce
140453c649
Return &str
from BasicAuth::user_id()
and BasicAuth::password()
( #249 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-07-19 01:33:32 +00:00
Roland
417c06b00e
fix: broken stream when authentication failed ( #260 )
...
* fix: broken http stream when authentication failed
Signed-off-by: Roland Ma <rolandma@outlook.com>
* remove unchanged
Signed-off-by: Roland Ma <rolandma@outlook.com>
* Update CHANGES.md
* Update CHANGES.md
* Update CHANGES.md
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-07-19 01:40:01 +01:00
Luca Palmieri
8fd1772d5e
Consistent import formatting ( #237 )
2022-03-29 11:46:13 +01:00
Rob Ede
e1f79dae17
fix test
2022-03-01 04:30:10 +00:00
simon-an
ce92f0036f
add test for middleware usage in app and scope ( #215 )
2022-03-01 04:18:46 +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
6676a50944
actix-web beta 15 updates ( #216 )
2021-12-18 03:37:23 +00:00
Rob Ede
74ec115161
migrate to actix-web beta 14 ( #209 )
2021-12-11 16:05:21 +00:00
Rob Ede
56051786a6
standardize future types to ones from actix_utils
2021-12-08 07:29:12 +00:00
Rob Ede
ec66754c0d
standardize crate level lints
2021-12-08 06:11:13 +00:00
Rob Ede
13f8dcb717
update to aw beta 9
2021-11-22 23:11:58 +00:00
fakeshadow
07deaadd7b
add optional auth extractor implement. ( #205 )
2021-10-26 21:10:22 +01:00
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
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
20ef05c36e
fix doctest ci ( #188 )
2021-06-27 07:02:38 +01: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
Juan J. Jimenez-Anca
8d635f71fb
allow session-only cookies ( #161 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-03-07 04:26:06 +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
Rob Ede
cbfd5d94ee
fix httpauth extraction error handling in middleware ( #128 )
2020-11-18 15:08:03 +00:00
Rob Ede
33dfea8997
update httpauth readme
2020-09-28 02:04:18 +01:00
Rob Ede
bad5f32a68
update all packages to use actix-web v3 ( #94 )
2020-09-11 16:26:15 +01:00
Yuki Okushi
7e6bdf2eb2
Check code with rustfmt not to introduce format commits ( #88 )
2020-07-21 03:51:51 +09:00
Boyd Johnson
70df190e0b
httpauth: Refactor out Mutex ( #69 )
2020-06-11 16:10:18 +01:00
Yuki Okushi
10fe10c9c1
httpauth: Minimize futures
dependency
2020-05-21 17:23:59 +09:00
Adam Chalmers
a50f1db473
Bugfix: AuthenticationError should set status_code
...
I noticed that my `AuthenticationError`'s `status_code` field was 401, but when I ran `.as_response_error()` the `ResponseError`'s code was 500 (the default value). It's because impl ResponseError for AuthenticationError doesn't define the `status_code()` trait method. Merely setting the status code in `error_response` isn't enough, it seems. I added a unit test for this case too.
2020-05-19 07:34:53 -05:00
Björn Steinbrink
3e17ad9a4e
Remove unneeded single path import
...
Imports with a single path component are useless.
2020-02-11 16:25:53 +01:00
Yuki Okushi
91f6519177
Set up GitHub Actions
2020-01-30 15:57:38 +09:00
Rob Ede
b4267818de
move files into module
2020-01-29 11:42:35 +00:00