1
私のプロジェクトをasp.netコアにアップグレードしました。しかし、私のCookieAuthneticationメソッドとOpenIdConnectionAuthenticationメソッドは動作しません。彼らは時代遅れになっています。asp.netコア2.0でCookieAuthenticatonとopenidConnect認証を使用できません
Startup.cs設定方法
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationScheme = "Cookies"
});
app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
{
AuthenticationScheme = "oidc",
SignInScheme = "Cookies",
Authority = "http://localhost:5000",
RequireHttpsMetadata = false,
ClientId = "integapay.client",
ClientSecret = "mySecret",
ResponseType = "code id_token",
Scope = { "openid", "profile", "api.public", "offline_access" },
GetClaimsFromUserInfoEndpoint = true,
SaveTokens = true
});