1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-27 02:37:42 +02:00
Commit Graph

17 Commits

Author SHA1 Message Date
61f16c609a fix doc warnings 2023-11-03 20:00:56 +00:00
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
aaedb9c625 MSRV 1.68 (#328) 2023-09-16 00:30:38 +01:00
1561bda822 apply imports_granularity fmt rule 2022-09-11 21:55:40 +01:00
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
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
8fd1772d5e Consistent import formatting (#237) 2022-03-29 11:46:13 +01:00
56051786a6 standardize future types to ones from actix_utils 2021-12-08 07:29:12 +00:00
07deaadd7b add optional auth extractor implement. (#205) 2021-10-26 21:10:22 +01:00
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
e10937103e fmt with new width 2021-08-30 23:27:44 +01:00
c6f579790f bump msrv to 1.51 2021-08-30 23:10:36 +01:00
20ef05c36e fix doctest ci (#188) 2021-06-27 07:02:38 +01:00
ca85f6b245 Update dependencies (Tokio 1.0) (#144) 2021-03-21 22:50:26 +00:00
10fe10c9c1 httpauth: Minimize futures dependency 2020-05-21 17:23:59 +09:00
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
b4267818de move files into module 2020-01-29 11:42:35 +00:00