fullstackhero / blazor-starter-kit

Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
MIT License
3.46k stars 727 forks source link

Windows Authentication support #298

Open kamazheng opened 2 years ago

kamazheng commented 2 years ago

Is it possible to add windows authentication support?

supermun commented 2 years ago

I'm using LDAP to login.

This is a simple example: https://www.codeproject.com/Tips/5273877/Csharp-Validate-a-username-and-password-from-LDAP

mikecasas commented 2 years ago

@supermun Are you having users login by entering their credentials?

supermun commented 2 years ago

What do you mean "login by entering their credentials"? We're using AD password to login.

mikecasas commented 2 years ago

@supermun Do you have a textbox where the end user enters their AD password?

neozhu commented 2 years ago

If you are using your client PC inside the enterprise, you should not need to re-enter the username/password to verify that you are already logged in AD

supermun commented 2 years ago

@supermun Do you have a textbox where the end user enters their AD password?

Yes, I'm using this login page: https://github.com/blazorhero/CleanArchitecture/blob/8120baac13afbf0711d8e7255ed72c336e8a570a/src/Client/Pages/Authentication/Login.razor

mikecasas commented 2 years ago

@supermun Thanks, that's what I was trying to confirm.

@neozhu That is the solution I was wanting to pursue.