Table of Contents
Preface
Chapter 1: Secure Coding Fundamentals
Technical requirements
Input validation
Enabling whitelist validation using validation attributes
Getting ready
How to do it…
How it works…
Whitelist validation using the FluentValidation library
Getting ready
How to do it…
How it works…
There's more…
See also…
Syntactic and semantic validation
Creating a custom validation attribute to implement semantic validation
Getting ready
How to do it…
How it works…
Input sanitization
Getting ready
How to do it…
How it works…
Input sanitization using the HTMLSanitizer library
Getting ready
How to do it…
How it works…
Output encoding
Output encoding using HtmlEncoder
Getting ready
How to do it…
How it works…
Output encoding using UrlEncoder ...
Get ASP.NET Core 5 Secure Coding Cookbook 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.