yinho999 / loco-oauth2

9 stars 6 forks source link

Support tower-sessions #1

Open maxcountryman opened 6 months ago

maxcountryman commented 6 months ago

I noticed this crate doesn't support tower-sessions, a crate I wrote as the successor to axum-sessions. At the same time, tower-sessions is the most popular and widely used session implementation for axum.

It seems like this crate is being promoted as the way to integrate OAuth2 with Loco so it would be nice to see it also leverage the broader axum and tower ecosystem. Do you have plans to support a wider set of middleware such as tower-sessions?

yinho999 commented 6 months ago

@maxcountryman That is a great suggestion. The reason this crate supported axum-session crate in the first hand is because loco initializer docs uses axum-session as an example. With your suggestion, I will start working on migrating to tower-session