-
Book Overview & Buying
-
Table Of Contents
Rust Web Programming - Third Edition
By :
In this chapter, we didn’t just cover the basics of authentication; we added another server to our system. What’s more, we compiled this server to the main ingress workspace, so our servers, the SQL scripts for those servers, and the React frontend are in one binary. Our auth server now authenticates our user and issues a token for other requests.
Now, we are really seeing how our system can scale. These servers can slot in and out of our system. Our authentication system is clearly defined, and there is nothing stopping you from taking your authentication system and slotting it into another system for another project. Authentication can explode in complexity. I often find myself creating roles and permissions, teams, and email processes to verify that the user’s email is legitimate. Starting a server specifically for authentication can seem a little excessive; however, you will be shocked at how quickly the complexity grows. Most people starting projects...