How Do Authentication And Authorization Work In ASP.NET?

Table of Content:

Introduction

Authentication and Authorization

Authentication

Authorization

Types of Asp Net Authentication

1. Form Authentication

  • When a user requests a page for the application, ASP.NET checks the session cookie. If the cookie exists and is valid, ASP.NET assumes the user is authenticated and processes the request.
  • If session cookies do not exist or are not valid then it redirects to the login form.
  • The user will enter the username and password and if they are valid then he will get authenticated and authorized.

2. Windows Authentication

3. Passport authentication

4. Custom Authentication process

Authorization in Asp.Net

1. Role-based authorization

2. Policy-Based Authorization

Final words

--

--

Tech-based Content Creator | Tech Geek | Like to contribute Information regarding latest Tech News and Trending Technologies| Always Curious to Learn New Things

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Julia Smith

Tech-based Content Creator | Tech Geek | Like to contribute Information regarding latest Tech News and Trending Technologies| Always Curious to Learn New Things