Loading ...

authentication and authorization in ASP.NET

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  getting started / general asp.net   » authentication and authorization in ASP.NET

authentication and authorization in ASP.NET

Posts under the topic: authentication and authorization in ASP.NET

Posted: 7/24/2010

Contributor 2237  points  Contributor
  • Joined on: 9/24/2009
  • Posts: 172

Hello Experts,

I want to study about authentication and authorization in asp.net. Can anybody tell me where should I begin?

Thanks in advance.


Posted: 7/24/2010

Guru 16518  points  Guru
  • Joined on: 4/19/2009
  • Posts: 483
  Answered

 

Authentication

Authentication is the process of determining the authenticity of a user based on the user's credentials. Whenever a user logs on to an application, the user is first authenticated and then authorized. The application's web.config file contains all of the configuration settings for an ASP.NET application. It is the job of the authentication provider to verify the credentials of the user and to decide whether a particular request should be considered authenticated or not. An authentication provider is used to prove the identity of the users in a system. 

 

Authorization

Authorization is the process of determining the accessibility to a resource for a previously authenticated user. Note that authorization can only work with authenticated users, hence ensuring that no un-authenticated user can access the application. The default authentication mode is anonymous authentication. There can be three types of authorization in ASP.NET

Source: http://www.dotnetjohn.com/articles.aspx?articleid=246

 

Or you can say :

 

Authorization: WHAT can you do?

Authentication: WHO are you?

 


Posted: 7/24/2010

Professional 8495  points  Professional
  • Joined on: 5/3/2010
  • Posts: 389
  Answered

I like the last two sentences that @Raghav has written in his post about Authorization/Authentication.

Actually, the first time I heard about Authentication/Authorization in general, these two statements explained me almost everything regarding the logic behind both of these two concepts.

Authentication: WHO are you? (hajan, raghav, mohit, anonymous or someoneThatDoesntExists) - confirming your identity of who you are.
Authorization: WHAT can you do? (create posts/threads, manage/administer posts/threads) - which means what are your authorization access rights you have in the system to resources. It's like dealing with defining rules and policies to different authorization groups. Ex: Administrators can access the Admin pages (they are authorized to do so), Moderators can access to the Mods pages (they are authorized to do so), Normal members are authorized to view the main page and do some normal stuff.

The previous two statements regarding Authorization & Authentication are completely defined by me :) so if you find something doubtful to you - just ask like what do I mean with this and that.

About Authentication & Authorization in ASP.NET - take a look at the following articles:

Security in ASP.NET - http://www.asp.net/web-forms/security

Authentication and Authorization in ASP.NET (c-sharpcorner.com) - http://www.c-sharpcorner.com/UploadFile/lmoningi/AuthenticationAndAuthorizatio11252005233533PM/AuthenticationAndAuthorizatio.aspx (very nice explanation!)

Authentication and Authorization in ASP.NET (aspalliance.com) - http://aspalliance.com/907

Hope this was helpful


Posted: 7/26/2010

Contributor 2237  points  Contributor
  • Joined on: 9/24/2009
  • Posts: 172

raghav_khunger said:

 

Authorization: WHAT can you do?

Authentication: WHO are you?

 

Thank you Raghav Sir. These two sentences are too simple and understandable.


Posted: 7/26/2010

Contributor 2237  points  Contributor
  • Joined on: 9/24/2009
  • Posts: 172

hajan said:

Authentication: WHO are you? (hajan, raghav, mohit, anonymous or someoneThatDoesntExists) - confirming your identity of who you are.

Authorization: WHAT can you do? (create posts/threads, manage/administer posts/threads) - which means what are your authorization access rights you have in the system to resources. It's like dealing with defining rules and policies to different authorization groups. Ex: Administrators can access the Admin pages (they are authorized to do so), Moderators can access to the Mods pages (they are authorized to do so), Normal members are authorized to view the main page and do some normal stuff.

Thank you so much Hajan.


Posted: 7/27/2010

Lurker 5  points  Lurker
  • Joined on: 7/27/2010
  • Posts: 1

Can you pls explain bit more about authentication?

 

What are the stuffs we need to configure in web.config file for authentication?


Posted: 7/27/2010

Guru 16518  points  Guru
  • Joined on: 4/19/2009
  • Posts: 483

Kannapiran,

Please post your query in new thread.


Page 1 of 1 (7 items)