How to authenticate a User in .Net Core 3.1 Razor Pages web app using local Active Directory - asp.net-core

Good afternoon,
I am developing a web application using .Net Core 3.1 and Razor Pages. I have started developing the application using Azure AD to authenticate the user that signs into my application using the project creation wizard. This approach is very easy and user friendly but unfortunately my organization wants the application to authenticate the user by using the local AD server and not the Azure AD one.
I have been googling around but have not found the best way to achieve an authentication such as the one provided by Azure AD but using the local AD server. But haven't found the right literature for this. Could anyone please point me towards the right direction please?
Thank you very much.

Related

Add support for AD authentication on a MVC 4 application

I have a big MVC 4 application that uses Form authentication.
It has its own user and privileges management using a custom database.
Now I need to adapt this application to allow integration with customer AD and allow SSO using their users.
All the guides I found online assume the creation of a brand new project.
I tried to add support using Connected Services, but I cannot find AD service (Only Office 365 Services with Microsoft Graph, but that's not the case).
I would like to make it configurable so I can choose to deploy in both in its own legacy user management scenario or the AD integration scenario.
Can anyone point me in the right direction?

ASP.NET Core MVC - Windows Authentication

I have a general question about using Windows authentication in an ASP.NET Core MVC project.
As far as I could understand is that you can have the authentication based on the Windows user. If I would deploy the website and different clients would connect to the website, would I be able to get all the windows user names that are connecting to the page? And also would they also see different content if I would program the content based on the Windows user that is connecting?
Thanks

Blazor wasm hosted application with company AD windows authentication

I am trying to figure out how can I call blazor wasm hosted application to my company's AD directory and get user.identity information.i am just running in circles.i don't want to use identity server or azure Ad.can someone please share code. The actual working code. Company policy is not allowing to use sticky sessions so can't use blazor server. Please any help.much appreciated.code would be much appreciated. I am surprised there is no such code out there. I am using .net 5
You'll really struggle to get this to work - from MS website:
We don't recommend using Windows Authentication with Blazor Webassembly or with any other SPA framework. We recommend using token-based protocols instead of Windows Authentication, such as OIDC with Active Directory Federation Services (ADFS).
Reference: https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/?view=aspnetcore-5.0#windows-authentication
I highly suggest switching to an OIDC implementation instead. ADFS supports this and your company might already have this setup on the network.

How can I make a SIMPLE net core authentication api using Angular?

I'm looking on internet and try to find a simple way to do an authentification for my connection page with Angular using net core as my backend, I created a table user with microsoft sql server manager, did the connection between net core and the database and want to do a simple connection page without a registration (It's a website with only a few accounts), but every tutorials on internet seems to work with net core Identity when I just need to connect Angular services with the net core API to look if the username and the password matches in the database and then if yes return true or otherwise send an error message via the api...
Sorry if it's a basic question, I'm kinda new to net core and I have difficulties to understand everything from it.
I think auth0 will be best for u.
they have good documentation for u to get started in asp.net core and angular
and their free plan will be more than enough for u
using this u will not have to write identity code.

Single Sign On With ASP.NET Identity Framework

This question has been asked so many times, and a quick search came up with lot of results. But I haven’t gotten satisfactory answer yet.
We have 2 web applications ( and we may have more in future) App1 is .Net 4 Silverlight Application and App2 is Node.js/Angular application. Both applications have different domains. www.app1.com and www.app2.com The App1 is hosted in IIS and App2 is NOT in IIS
Now, we have to implement Single Sign On Feature to support these applications. I was looking into ASP.NET Identity which is available in .Net 4.5.
Questions
1. So I thought of creating new MVC 5 application using .Net 4.5 that could serve as SSO site. If possible I wanted to use our own SQL server to maintain the credentials. But I am not sure how to share authentication ticket/cookie between sites. I have done this before using Forms Authentication where I had to use same machine key on all websites. But those were all .net applications. However with new identity framework and OWIN and with different types of applications i am not sure. So before I jump into it and start developing I wanted to know is it recommended approach, and if yes, can someone point me in the right direction. An article would greatly help.
2.Second options is to use Azure AD, but I am assuming we have to pay for it( we have MSDN sub) and we do not have local active directory either. Is Azure AD is the right option here? Does it work with Node.Js/Angular application. With Azure AD I guess App1 I may have to upgrade it to .Net 4.5