tower-http icon indicating copy to clipboard operation
tower-http copied to clipboard

Implement require_auth with validate_request

Open 82marbag opened this issue 2 years ago • 2 comments

Motivation

This is a follow-up to: https://github.com/tower-rs/tower-http/pull/289 ValidateRequest is an abstraction of a validator and RequireAuthorization is an instance, but the latter has yet to be implemented in terms of the former. They now are two independent types.

Solution

RequireAuthorization is now implemented by ValidateRequest.

This is a breaking change.

82marbag avatar Aug 22 '22 19:08 82marbag

Next could be the async version

82marbag avatar Aug 22 '22 19:08 82marbag

test-msrv fails on: Error: could not compile hashbrown

82marbag avatar Aug 22 '22 19:08 82marbag

Any update on this?

82marbag avatar Nov 24 '22 09:11 82marbag