dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.4k stars 10k forks source link

Add WindowsAuth samples #4120

Open Tratcher opened 6 years ago

Tratcher commented 6 years ago

Windows Auth only (IIS Express vs httpsys) Windows Auth + impersonation Windows Auth + anonymous + cors

Mixed auth: Windows Auth + anonymous Windows Auth + bearer for different endpoints or the same endpoint Windows Auth + remote/cookie auth with selection page or automatic selection

RobinHoody commented 5 years ago

Hi @Tratcher, i followed this from https://github.com/aspnet/Security/issues/1653 Do you know if there's a working sample for this?

Kind regards,

Dave

Tratcher commented 5 years ago

Are you looking for something that's not covered here: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-2.1?

code2expert commented 5 years ago

Are you looking for something that's not covered here: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-2.1?

Yes. I am looking to authenticate with windows authentication but using the forms provided for anonymous authentication. I want to be able to control how a user logs into the app even if it's windows authentication.

Tratcher commented 5 years ago

I am looking to authenticate with windows authentication but using the forms provided for anonymous authentication.

Do you mean you want them to enter their username and password into your own login form? That's not a flow we support, nor should you, it's much weaker than client based windows auth.

code2expert commented 5 years ago

Thanks Steve,

What I want is to use my form instead of the pop up that comes up at the moment which I have no control over.

code2expert commented 5 years ago

I'll like to control the login/logout sessions as users are accessing a pc.

HaoK commented 2 years ago

Plan is to write a well commented mixed auth sample and add it to the docs samples

HaoK commented 2 years ago

@Rick-Anderson in terms of process/PR where should a new mixed auth sample go? Would it be a new app in https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/common/samples ?

Rick-Anderson commented 2 years ago

@Rick-Anderson in terms of process/PR where should a new mixed auth sample go? Would it be a new app in https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/common/samples ?

https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/common