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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -