This English blog post is Andrew Lock Written  Introduction to Authentication with ASP.NET Core
<http://andrewlock.net/introduction-to-authentication-with-asp-net-core/> .

Here are some simple reading notes :

-----------------------------------

ASP.NET Core The verification model of is  claims-based authentication .Claim 
It is an expression of the characteristics of the verified subject , such as : Login user name is ...email yes ... user Id yes ... Of which “ Login user name ”,“email”,“ user Id” namely ClaimType.

You can think of claims as being a statement about...That statement consists
of a name and a value.

Corresponding to things in reality , Like a driver's license , Driver's license “ ID card No. :xxx” It's a claim,“ full name :xxx” It's another one claim.

a set claims It forms a identity, With these claims Of identity namely ClaimsIdentity
, A driver's license is one ClaimsIdentity, You can ClaimsIdentity Understood as “ certificates ”, A driver's license is a kind of certificate , Passport is also a kind of document .

ClaimsIdentity The owner of  ClaimsPrincipal 
, One ClaimsPrincipal Can hold multiple ClaimsIdentity, Like a person with a driver's license , With a passport .

------------------------------------

I understand Claim, ClaimsIdentity, ClaimsPrincipal These three concepts , To understand how to generate login Cookie Why use the following code ?
var claimsIdentity = new ClaimsIdentity(new Claim[] { new
Claim(ClaimTypes.Name, loginName) },"Basic"); var claimsPrincipal = new
ClaimsPrincipal(claimsIdentity);await
context.Authentication.SignInAsync(_cookieAuthOptions.AuthenticationScheme,
claimsPrincipal);
To use Cookie Represents a validated subject , Must contain Claim, ClaimsIdentity,
ClaimsPrincipal These three messages , For example, a person with a legal driver's license ,ClaimsPrincipal It's the one with the papers ,ClaimsIdentity It's a certificate ,"Basic" Is the type of certificate ( Let's say it's a driver's license ),Claim It's the information in the driver's license .