9 Add authentication and authorization
This chapter covers
- Understanding the difference between authentication and authorization
- Adding authentication to your web service
- Adapting existing API endpoints to handle authentication
- Using various forms of authentication for your web service
- Using cookies with Warp
- Adding authorization middleware for your routes
Parts 1 and 2 covered the basics of a web service: everything you need to know to add routes, a database, and external APIs, and to observe a running application via logs. Part 3 will help you do everything necessary to ship a Rust web service to production. The three chapters in this last part cover authentication and authorization, deployment, and testing.
You’ll need everything you learned ...
Get Rust Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.