如何在ASP.NET MVC 4.5中使用Azure Active directory身份验证配置自定义登录页
我正在使用Azure Active directory对用户进行身份验证。当我在主页中单击OpenConnectiond时,它被重定向到Microsoft登录页面。是否有任何选项可以使用自定义登录页,并且可以从此处调用身份验证API如何在ASP.NET MVC 4.5中使用Azure Active directory身份验证配置自定义登录页,asp.net,asp.net-mvc-4,azure,Asp.net,Asp.net Mvc 4,Azure,我正在使用Azure Active directory对用户进行身份验证。当我在主页中单击OpenConnectiond时,它被重定向到Microsoft登录页面。是否有任何选项可以使用自定义登录页,并且可以从此处调用身份验证API app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); app.UseCookieAuthentication(ne
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions() {
LoginPath = new PathString("/Account/Login")
});
app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
{
ClientId = "xxxx",
Authority = "xxx",
RedirectUri = "Account/login",
});
你找到答案了吗?没有。我没有找到替代答案。你找到答案了吗?没有。我没有找到替代答案。