を処理するように設定されていない私は、ASP.NETコアとASP.NETのアイデンティティを使用していると私は持っている:が認証なしハンドラがスキームMicrosoft.AspNet.Identity.Application
services.AddIdentity<User, Role>();
私がログインしたときにこれが正常に動作します。私はAuthenticationScheme = "cookies"
、AutomaticAuthenticate = true
とAutomaticChallenge = true
を持って
No authentication handler is configured to handle the scheme:
Microsoft.AspNet.Identity.Application
注:私は次のエラーを取得する。これにより
services
.AddIdentity<User, Role>(x => {
x.Cookies = new IdentityCookieOptions {
ApplicationCookie = new CookieAuthenticationOptions {
AccessDeniedPath = new PathString("/signin"),
AuthenticationScheme = "cookies",
AutomaticAuthenticate = true,
AutomaticChallenge = true,
CookieName = "_ath",
LoginPath = new PathString("/signin"),
LogoutPath = new PathString("/signout")
}
};
})
.AddEntityFrameworkStores<Context, Int32>()
.AddDefaultTokenProviders();
:しかし、私は、このセットアップを試してみました。
私もStarttup /設定方法に以下があります。
applicationBuilder
.UseIdentity()
.UseMvc(routes => { routes.MapRoute(name: "default", template: "{controller=Home}/{action=Index}/{id?}"); })
だから私は、私はデフォルトの順序を使用していたと...
は、誰もが私が行方不明です何を知っていますか?
私はすでにそれがあるので、残念ながらそれは私を助けません。私はそれを反映するために私の質問にコードを更新... –