In the previous chapter, we added support for administering the SportsStore application, and it will not have escaped your attention that anyone would be able to modify the product catalog if we deployed the application right now. All someone would need to know is that the administration features are available using the Admin/Index URL. In this chapter, we are going to show you how to prevent random people from using the administration functions by password-protecting access to the entire Admin controller.
KeywordsAction Method Controller Class View Model Product Catalog Public Class
Unable to display preview. Download preview PDF.