Introducing tower-oauth2-resource-server
TLDR: I’ve built a middleware for handling JWT authorization. It’s written for the Rust ecosystem and supports many popular web frameworks such as axum, salvo and tonic. It’s called tower-oauth2-resource-server and you can find the source code on github. Feel free to use and contribute!
Over the last few months, I’ve delved into the art of writing a REST API using Rust. Specifically, I’ve used the axum crate to do so. Like most projects, mine eventually needed authorization. A way to validate incoming JSON Web Tokens (JWTs) from an external identity provider.
By Rickard Andersson
read more