Skip to main content

Authentication and Authorization Using ASP.NET Identity

  • Chapter
  • First Online:
ASP.NET MVC with Entity Framework and CSS
  • 3048 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics