suport multiple basic/bearer credentials for 'Authorization' server support #352
Labels
easy
An easy issue to pick up for anyone.
low prio
Low priority item.
mentor available
A mentor is available to help you through the issue.
Milestone
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]
andVec<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.
The text was updated successfully, but these errors were encountered: