app.UseCookieAuthentication(options => { options.LoginPath = new PathString("/Admin/Login"); options.logoutPath = new PathString("/Admin/logoff"); },IdentityOptions.ApplicationCookieAuthenticationScheme );