Authentication, Authorization & Security

Overview


In Part 4, we connected forms to server operations and kept the user’s input when a change was rejected. We will now add accounts and permissions to those interactions. A valid note title does not tell us who sent it or whether that account may edit the note. We will follow a sign-in through later requests, check which changes are permitted, and examine what a denied request leaves unchanged. We will also choose public response fields and handle untrusted text.

The notes workflow provides a familiar example throughout the part. Helpdesk, profile, document and preferences examples let us apply the same ideas to other relationships and operations. The chapter snippets explain individual checks; programming cards supply their own starter files and dependencies. Continue the marketplace project in marketplace/, applying these ideas to the seller and buyer interactions from Part 4.

You need the HTTP, TypeScript and validation concepts from Parts 3-4. Review API contracts and validation or client API modules as needed.

Part structure