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
Nesta página do site você pode assistir ao vídeo on-line Shuttle JWT tutorial | Deploy & Test | Rust Launguage duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Learning Rust 09 Julho 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 116 vezes e gostou 3 espectadores. Boa visualização!