Asp.net 默认情况下,承载身份验证令牌是否使用OWIN加密?
我们正在使用WebAPI2和OWIN承载身份验证。在OAuthAuthorizationProvider类中,我们以正常方式添加声明Asp.net 默认情况下,承载身份验证令牌是否使用OWIN加密?,asp.net,asp.net-web-api,asp.net-mvc-5,owin,Asp.net,Asp.net Web Api,Asp.net Mvc 5,Owin,我们正在使用WebAPI2和OWIN承载身份验证。在OAuthAuthorizationProvider类中,我们以正常方式添加声明 OnGrantResourceOwnerCredentials = async context => { //Authenticate the user //Our logic removed //After authenticating, set up the claims var claimsIdentity = new ClaimsIdentity
OnGrantResourceOwnerCredentials = async context =>
{
//Authenticate the user
//Our logic removed
//After authenticating, set up the claims
var claimsIdentity = new ClaimsIdentity(context.Options.AuthenticationType);
claimsIdentity.AddClaim(new Claim("user", authenticatedUser.Username));
context.Validated(claimsIdentity);
}
我的问题-生成的承载令牌在默认情况下是否加密?另外,由于它可能相关,因此使用context.Validated(authenticationTicket)
是否有任何优势