2018-05-20 11:59:41 +02:00
# actix-web-httpauth
2018-05-20 12:15:59 +02:00
2020-01-30 02:14:55 +01:00
[![crates.io ](https://img.shields.io/crates/v/actix-web-httpauth )](https://crates.io/crates/actix-web-httpauth)
[![Documentation ](https://docs.rs/actix-web-httpauth/badge.svg )](https://docs.rs/actix-web-httpauth)
2020-02-18 03:47:17 +01:00
[![Dependency Status ](https://deps.rs/crate/actix-web-httpauth/0.4.1/status.svg )](https://deps.rs/crate/actix-web-httpauth/0.4.1)
2020-01-30 02:14:55 +01:00
![Apache 2.0 or MIT licensed ](https://img.shields.io/crates/l/actix-web-httpauth )
[![Join the chat at https://gitter.im/actix/actix ](https://badges.gitter.im/actix/actix.svg )](https://gitter.im/actix/actix?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
2018-05-20 12:15:59 +02:00
2020-01-30 02:14:55 +01:00
> HTTP authentication schemes for [actix-web](https://github.com/actix/actix-web) framework.
2018-05-20 21:10:48 +02:00
2019-06-05 17:52:47 +02:00
Provides:
2020-01-30 01:31:25 +01:00
* typed [Authorization] and [WWW-Authenticate] headers
2019-06-05 17:52:47 +02:00
* [extractors] for an [Authorization] header
* [middleware] for easier authorization checking
2020-01-30 10:39:35 +01:00
All supported schemas are actix [Extractors ](https://docs.rs/actix-web/2.0.0/actix_web/trait.FromRequest.html ),
2019-06-05 17:52:47 +02:00
and can be used both in the middlewares and request handlers.
2018-05-20 21:10:48 +02:00
## Supported schemes
2018-05-20 21:15:59 +02:00
* [Basic ](https://tools.ietf.org/html/rfc7617 )
2018-05-30 15:43:39 +02:00
* [Bearer ](https://tools.ietf.org/html/rfc6750 )