hi,
i am using MVC jQuery DotNet Template.
i have configured LDAP authentication as mentioned in your documentation and it is working fine. problem is that it shows a login screen and user have to enter user name password. i want to have automatic login since application will be hosted on intranet and users are already logged in to computer using their domain account.
i have gone through following all issues but couldn't find a solution. https://support.aspnetzero.com/QA/Questions?Sort=CreationTime-desc&Filter=Windows+authentication
In Normal MVC application i just need to change IIS settings but in aspnet zero may i know how it can be done?
3 Answer(s)
-
0
Hi @azmat
I haven't done it before but I guess you can get the username of the user when you change IIS settings After that, you can login the user only by using the username. In order to do that, get the user from database using the username (or first create the user first if user doesn't exist) .
After all, you can use
_signInManager.SignInAsync
to login the user. -
0
Hi, I tried what we normally do for ASP.MVC Application in web.config and IIS however it’s not working. In web.Config under <system.web> <authentication mode="Windows"> </authentication> Set Authentication in IIS Anonymous disable Windows enable In Internet Setting set the Website under safe site and set allow windows user and password to true ( Windows Popup will not come in this case) I think ASP.Net Zero architecture is not the same whether any smart way to get Single Sign-on working on it.
-
0
Hi @azmat
Do oyu mean ASP.NET MVC 5.x or ASP.NET Core ? If it is working on a raw ASP.NET App, it should work with AspNet Zero as well.