摘要:
我们的目标是在后台业务处理类中,能够很容易的取得用户信息或者其它HTTP请求相关的信息。所以,首先我们需要一个存储这些信息的类:1 public class RequestData2 {3 public string UserName { get; set; }4 5... 阅读全文
摘要:
1、Startup类的Configure方法中,app.UseIdentity();改为app.UseCookieAuthentication(options => { options.AuthenticationScheme = CookieA... 阅读全文