Authentication and Authorization in Asp.Net

InfoPath alternatives for form designing SharePoint

In this article we will discuss about Authentication and Authorization in Asp.Net.

This is the process of determining users identities and forcing those users to prove they are who they claim to be. Normally user enter credentials against a longin page and then they are authenticated against the Windows user accounts on a computer, a list of users in a file, or a back-end database.

To secure web site, you can use two types of authentication.

1- Forms Authentication:

Forms authetication works with conjunction with database where you store user information like user name or password. But you also can store user information in any where else.

To implement Forms Authentication follow these three steps:

– Set the authentication mode to forms authentication in the web.config file.

– Restrict anonymous users from a specific page or directory in your application.

– Create the login page.

2- Windows authentication:

With Windows authentication, the web server forces every user to log in as a Windows user. Here all users should have Windows user accounts on the server.

To implement Windows authentication follow below steps:

– Set the authentication mode to Windows authentication in the web.config file.

– Disable anonymous access for a directory by using an authorization rule.

– Configure the Windows user accounts on your web server.

Authorization is the process of determining whether that user has sufficient permission to perform a given action such as viewing a page or retrieving information from a database. But provided the user should have been authenticated before.

Also you can check out Anonymous Types in C#.Net, Extensions method in C#.Net and Asp.Net MVC4 Controller class example.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site

View all posts by Bijay Kumar →

Leave a Reply