mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-30 10:32:55 +01:00
25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
# actix-web-httpauth
|
|
|
|
<center>
|
|
[![Latest Version](https://img.shields.io/crates/v/actix-web-httpauth.svg)](https://crates.io/crates/actix-web-httpauth)
|
|
[![Latest Version](https://docs.rs/actix-web-httpauth/badge.svg)](https://docs.rs/actix-web-httpauth)
|
|
[![dependency status](https://deps.rs/crate/actix-web-httpauth/0.4.0/status.svg)](https://deps.rs/crate/actix-web-httpauth/0.4.0)
|
|
![Build Status](https://github.com/actix/actix-web-httpauth/workflows/CI/badge.svg?branch=master&event=push)
|
|
![Apache 2.0 OR MIT licensed](https://img.shields.io/badge/license-Apache2.0%2FMIT-blue.svg)
|
|
<center>
|
|
|
|
HTTP authentication schemes for [actix-web](https://github.com/actix/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](https://docs.rs/actix-web/1.0.0/actix_web/trait.FromRequest.html),
|
|
and can be used both in the middlewares and request handlers.
|
|
|
|
## Supported schemes
|
|
|
|
* [Basic](https://tools.ietf.org/html/rfc7617)
|
|
* [Bearer](https://tools.ietf.org/html/rfc6750)
|