ASP.NET MVC 4.5.2 подключение к IdentityServer4

У меня есть сайт, работающий на ASP.NET MVC 4.5.2. У меня запущен сервер IdentityServer4, но когда я пытаюсь аутентифицироваться на нем, я получаю:

invalid_request

Для ASP.NET Core MVCдокументация имеет:

app.UseCookieAuthentication(new CookieAuthenticationOptions
{
    AuthenticationScheme = "Cookies"
});
app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
{
    AuthenticationScheme = "oidc",
    SignInScheme = "Cookies",

    Authority = "http://localhost:5000",
    RequireHttpsMetadata = false,

    ClientId = "mvc",
    SaveTokens = true
});

Я включаю следующий пакет NuGet в свой проект Microsoft.Owin.Security.OpenIdConnect. Мой код выглядит следующим образом:

        app.UseCookieAuthentication(new CookieAuthenticationOptions
        {
            AuthenticationType = "Cookies"
        });
        app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
        {
            AuthenticationType = "oidc",
            SignInAsAuthenticationType = "Cookies",

            Authority = "http://localhost:5000",

            ClientId = "mvc",
        });

Как правильно подключиться к нему?

Ответы на вопрос(1)

Ваш ответ на вопрос