Martin Costello 6/16/2020

Integration Testing ASP.NET Core Resources Protected with Antiforgery Using Application Parts

Read Original

This technical article explains how to use ASP.NET Core Application Parts to streamline integration testing of HTTP POST and DELETE resources that are secured with antiforgery tokens. It addresses the brittleness of traditional token-scraping methods and demonstrates a cleaner approach to inject test helpers, keeping production code uncluttered while maintaining robust security testing.

Integration Testing ASP.NET Core Resources Protected with Antiforgery Using Application Parts

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week