[Feature Request] Support actix_web_httpauth
Author: mike-lloyd03Created Nov 6, 2022Updated Nov 6, 2022
I am trying to use the BearerAuth extractor from actix_web_httpauth. However, using this in a service like so:
#[api_v2_operation(tags("Users"))]
#[get("/users")]
async fn get_all(
pool: web::Data<PgPool>,
token: BearerAuth,
) -> Result<Json<Vec<User>>, Error> {
println!("{:?}", token);
route::get_all::<User>(pool).await
}
Raises errors stating that the following functions are not implemented by BearerAuth:
update_definitionsupdate_security_definitionsupdate_securityupdate_parameter
I believe this would be solved by implementing OperationModifier on BearerAuth (and probably BasicAuth as well) similar to what was done with #232.
Please consider adding this support if possible. Thank you.
Source: paperclip-rs/paperclip