2018-05-20 11:59:41 +02:00
|
|
|
# actix-web-httpauth
|
2018-05-20 12:15:59 +02:00
|
|
|
|
2022-07-21 04:07:06 +02:00
|
|
|
> HTTP authentication schemes for [Actix Web](https://actix.rs).
|
2020-09-28 03:04:18 +02:00
|
|
|
|
2024-01-06 22:08:09 +01:00
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
|
2021-03-21 10:38:29 +01:00
|
|
|
[![crates.io](https://img.shields.io/crates/v/actix-web-httpauth?label=latest)](https://crates.io/crates/actix-web-httpauth)
|
2024-06-11 05:02:32 +02:00
|
|
|
[![Documentation](https://docs.rs/actix-web-httpauth/badge.svg?version=0.8.2)](https://docs.rs/actix-web-httpauth/0.8.2)
|
2020-01-30 02:14:55 +01:00
|
|
|
![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-web-httpauth)
|
2024-06-11 05:02:32 +02:00
|
|
|
[![Dependency Status](https://deps.rs/crate/actix-web-httpauth/0.8.2/status.svg)](https://deps.rs/crate/actix-web-httpauth/0.8.2)
|
2020-09-28 03:04:18 +02:00
|
|
|
|
2024-01-06 22:08:09 +01:00
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
2021-03-21 10:38:29 +01:00
|
|
|
## Documentation & Resources
|
|
|
|
|
2022-01-28 18:17:15 +01:00
|
|
|
- [API Documentation](https://docs.rs/actix-web-httpauth/)
|
2022-06-22 13:42:46 +02:00
|
|
|
- Minimum Supported Rust Version (MSRV): 1.57
|
2020-09-28 03:04:18 +02:00
|
|
|
|
|
|
|
## Features
|
2022-07-21 04:07:06 +02:00
|
|
|
|
2020-09-28 03:04:18 +02:00
|
|
|
- Typed [Authorization] and [WWW-Authenticate] headers
|
|
|
|
- [Extractors] for authorization headers
|
|
|
|
- [Middleware] for easier authorization checking
|
2018-05-20 12:15:59 +02:00
|
|
|
|
2020-09-28 03:04:18 +02:00
|
|
|
All supported schemas can be used in both middleware and request handlers.
|
2018-05-20 21:10:48 +02:00
|
|
|
|
2020-09-28 03:04:18 +02:00
|
|
|
## Supported Schemes
|
2022-07-21 04:07:06 +02:00
|
|
|
|
2020-09-28 03:04:18 +02:00
|
|
|
- [HTTP Basic](https://tools.ietf.org/html/rfc7617)
|
|
|
|
- [OAuth Bearer](https://tools.ietf.org/html/rfc6750)
|
2019-06-05 17:52:47 +02:00
|
|
|
|
2020-09-28 03:04:18 +02:00
|
|
|
<!-- LINKS -->
|
2018-05-20 21:10:48 +02:00
|
|
|
|
2020-09-28 03:04:18 +02:00
|
|
|
[Authorization]: https://docs.rs/actix-web-httpauth/*/actix_web_httpauth/headers/authorization/index.html
|
|
|
|
[WWW-Authenticate]: https://docs.rs/actix-web-httpauth/*/actix_web_httpauth/headers/www_authenticate/index.html
|
|
|
|
[Extractors]: https://actix.rs/docs/extractors/
|
|
|
|
[Middleware]: https://docs.rs/actix-web-httpauth/*/actix_web_httpauth/middleware/index.html
|