How to configure custom login page with Azure Active directory authentication in ASP.NET MVC 4.5 -
i using azure active directory authenticate users. when click on openconnectid in home page, getting redirected microsoft login page. there options use custom login page instead , may call authentication api here.
app.setdefaultsigninasauthenticationtype(cookieauthenticationdefaults.authenticationtype); app.usecookieauthentication(new cookieauthenticationoptions() { loginpath = new pathstring("/account/login") }); app.useopenidconnectauthentication(new openidconnectauthenticationoptions { clientid = "xxxx", authority = "xxx", redirecturi = "account/login", });
Comments
Post a Comment