aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Add WindowsAuth samples

Open Tratcher opened this issue 8 years ago • 9 comments

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

Tratcher avatar Dec 28 '17 16:12 Tratcher

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

RobinHoody avatar Nov 30 '18 15:11 RobinHoody

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?

Tratcher avatar Nov 30 '18 16:11 Tratcher

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.

code2expert avatar Jun 04 '19 15:06 code2expert

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.

Tratcher avatar Jun 04 '19 16:06 Tratcher

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 avatar Jun 04 '19 19:06 code2expert

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

code2expert avatar Jun 04 '19 19:06 code2expert

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

HaoK avatar Oct 05 '22 17:10 HaoK

@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 ?

HaoK avatar Oct 05 '22 17:10 HaoK

@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

Rick-Anderson avatar Oct 05 '22 19:10 Rick-Anderson