Authentication in Asp.net

Authentication is the process of obtaining some sort of credentials from the users and validates the users identity based on the credentials.There are 3 main authentication types.They are
1.Windows authentication
2.Forms authentication
3.Token-based authentication
1.Windows authentication
This uses local windows users and groups to authenticate.This  supports only windows operating system.So it  is suitable for Intranet networks where the servers ,clients and users all belong to the same windows domain.It's further classified in to 3 types
a)Basic authentication
          Username and password is sent as Base64-encoded strings.It is very week form of authentication.
b) Digest authentication
         It over comes the issues of basic authentication by using MD5 Hashed.This is very hard to decipher.
c) Integrated authentication
    Kerberos authentication or NT LAN manager authentication.This is very safe.
2.)Forms authentication
        This is cookie/URL based authentication in which a username and password are stored on client machine as cookies.In dot net core we have claims based model.
          Claims are set of information stored in key value pair form and are used to store user information such as name, address,email,phone and so on.
(e.g)
IList<Claim> userDetails= new IList<Claim>();
Claim udt =new Claim();
udt.Name="Saravanan";
udt.Country="India";
userDetails.Add(udt);
3.Token based authentication
        This will generate a common token against the username and password when users login first time.Then this token will be used for all other purposes.JWT(Json Web Token) is a most popular token.

Comments

Popular posts from this blog

Types of Architects

Basic measurements

Search html table contents based on its td using Jquery