0
晴れた認証(MVC5)を使用してアプリケーションを作成しています。IIS Expressで動作しているときはすべてローカルで動作します。アプリケーションをローカルIISにホスティングするとき、アプリケーションはユーザー認証のためにMicrosoftログインページにリダイレクトされ、資格情報を入力した後、Azureアプリケーションで言及したリダイレクトURLに戻りません。紺色認証を使用したMVCアプリケーション
新しいナンスクッキー、URLを調べるにはを生成し、BAD REQUESTのエラーを取得
Startup.Auth.csコード
public partial class Startup
{
private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"];
private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];
private static string tenantId = ConfigurationManager.AppSettings["ida:TenantId"];
private static string postLogoutRedirectUri = ConfigurationManager.AppSettings["ida:PostLogoutRedirectUri"];
private static string authority = aadInstance + tenantId;
public void ConfigureAuth(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions());
app.UseOpenIdConnectAuthentication(
new OpenIdConnectAuthenticationOptions
{
ClientId = clientId,
Authority = authority,
PostLogoutRedirectUri = postLogoutRedirectUri
});
}
}
URLとatlastに追加し続けています私はこのlinkからサンプルプロジェクトをいくつか手に入れています。
この問題に直面している人なら誰でも???????????
はい。しかし、変更はありません – thejustv