Owez / rocket-basicauth

A high-level basic access authentication request guard for Rocket.rs
https://crates.io/crates/rocket-basicauth
MIT License
7 stars 7 forks source link

Make it easy to test basic-auth protected routes #5

Open thomaseizinger opened 3 years ago

thomaseizinger commented 3 years ago

This crate works great to build basic-auth protected routes!

It would be nice if we could also expose a utility function to make it easy to create a basic auth header that can be used with rocket's local client!

See https://rocket.rs/v0.5-rc/guide/testing/.

Owez commented 3 years ago

I'll try to tackle this one tomorrow :)

thomaseizinger commented 3 years ago

If I may make a suggestion: I think an extension trait for the client would nice!