We already have support for this header for a single Basic
/ Bearer
credential as can be found in https://github.com/plabayo/rama/blob/main/rama-http/src/layer/auth/require_authorization.rs.
Goal of this issue is to:
[Basic; N]
, Vec<Basic>
, [Bearer; N]
and Vec<Bearer>
;Arc<...>
supportIn order to support this all it is probably easiest to refactor the code a bit by:
Basic
, Bearer
, Vec<impl Authorizer>
, [impl Authorizer; N]
, Arc<Authorizer>
.This way you only need a single implementation of the actual authorize/anonymouse logic as the actual authorization validation can be done by the Authorizer
trait.
This issue is low priority, but due to a contribution from someone recently I noticed that we don't have support for multiple credentials here yet, while we do have that support for Proxy-Authorization. Mentorship is available for this one.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too