Following https://docs.shuttle.rs/examples/axum... ~ "Learn how you can secure your Axum web application by using JWT tokens."
I deploy to shuttle and then test :
/public: a route that can be called without needing any authentication.
/login: a route for posting a JSON object with a username and password to get a JWT.
/private: a route that can only be accessed with a valid JWT.
#learningrust #rustprogramming
Sur cette page du site, vous pouvez voir la vidéo en ligne Shuttle JWT tutorial | Deploy & Test | Rust Launguage durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Learning Rust 09 juillet 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 116 fois et il a aimé 3 téléspectateurs. Bon visionnage!