mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +01:00
38 lines
1.4 KiB
Markdown
38 lines
1.4 KiB
Markdown
# actix-web-httpauth
|
|
|
|
> HTTP authentication schemes for [Actix Web](https://actix.rs).
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
[![crates.io](https://img.shields.io/crates/v/actix-web-httpauth?label=latest)](https://crates.io/crates/actix-web-httpauth)
|
|
[![Documentation](https://docs.rs/actix-web-httpauth/badge.svg?version=0.8.2)](https://docs.rs/actix-web-httpauth/0.8.2)
|
|
![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-web-httpauth)
|
|
[![Dependency Status](https://deps.rs/crate/actix-web-httpauth/0.8.2/status.svg)](https://deps.rs/crate/actix-web-httpauth/0.8.2)
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
## Documentation & Resources
|
|
|
|
- [API Documentation](https://docs.rs/actix-web-httpauth/)
|
|
- Minimum Supported Rust Version (MSRV): 1.57
|
|
|
|
## Features
|
|
|
|
- Typed [Authorization] and [WWW-Authenticate] headers
|
|
- [Extractors] for authorization headers
|
|
- [Middleware] for easier authorization checking
|
|
|
|
All supported schemas can be used in both middleware and request handlers.
|
|
|
|
## Supported Schemes
|
|
|
|
- [HTTP Basic](https://tools.ietf.org/html/rfc7617)
|
|
- [OAuth Bearer](https://tools.ietf.org/html/rfc6750)
|
|
|
|
<!-- LINKS -->
|
|
|
|
[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
|