私はWebサイトをASP.NET MVC 4.5.2で実行しています。私はIdentityServer4サーバが実行されているが、私は試してみて、それに対して認証時に私が取得:ASP.NET MVC 4.5.2 IdentityServer4に接続
invalid_request
ASP.NETコアMVCについてdocumentationがあります
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",
});
はどのようにして、正しくそれに接続するのでしょうか?
ログはIdentityServer4アプリケーションに言うのです何を?いくつかのログを追加します。 – Lutando
こんにちは、私は同じことをしようとしています...あなたはこれまでに仕事をしましたか? でも動作しますか? –
@ JalalEl-Shaerが回答を追加しました。それが役に立てば幸い。 – Liam