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
In questa pagina del sito puoi guardare il video online Shuttle JWT tutorial | Deploy & Test | Rust Launguage della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Learning Rust 09 luglio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 116 volte e gli è piaciuto 3 spettatori. Buona visione!