Abstract
We now have a web site where users can create, edit, and search for products and manage images. At the moment, though, anyone can just open the site and edit, create, and delete products and images. This chapter shows you how to add some authentication so users can log in and how to add authorization based on roles to determine what tasks users can perform. The code in this chapter uses Microsoft ASP.NET Identity v2 combined with SQL LocalDb. Throughout the code in this chapter, you will see references to OWIN, which stands for Open Web Interface for .NET. The idea behind OWIN is that it acts as a layer of abstraction between a web application and the hosting environment.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Lee Naylor
About this chapter
Cite this chapter
Naylor, L. (2016). Authentication and Authorization Using ASP.NET Identity. In: ASP.NET MVC with Entity Framework and CSS . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2137-2_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2137-2_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2136-5
Online ISBN: 978-1-4842-2137-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)