标签: owin
实施AuthenticationHandler< ...>时class,当AuthenticateCoreAsync方法的用户身份验证失败时,你应该返回什么?
答案 0 :(得分:0)
您应该返回return new AuthenticationTicket(null, (AuthenticationProperties)null);
return new AuthenticationTicket(null, (AuthenticationProperties)null);
请参阅https://github.com/IdentityModel/Thinktecture.IdentityModel/blob/master/source/Hawk/Owin/HawkAuthenticationHandler.cs#L69