1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 14:55:56 +01:00
actix-extras/actix-web-httpauth
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
..
2020-01-29 11:42:35 +00:00
2020-01-30 00:31:25 +00:00
2020-01-30 00:31:25 +00:00
2020-02-19 09:31:51 +09:00

actix-web-httpauth

crates.io Documentation Dependency Status Apache 2.0 or MIT licensed Join the chat at https://gitter.im/actix/actix

HTTP authentication schemes for actix-web framework.

Provides:

  • typed [Authorization] and [WWW-Authenticate] headers
  • [extractors] for an [Authorization] header
  • [middleware] for easier authorization checking

All supported schemas are actix Extractors, and can be used both in the middlewares and request handlers.

Supported schemes