microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.03k stars 399 forks source link

Razor App on Service Fabric with Windows Auth #498

Open PaulJoW opened 4 years ago

PaulJoW commented 4 years ago

Hi. I'm looking for advise as I've can't find a recommended approach or if this is not the way to go about this. Iv'e found examples of parts but want to verify i'm taking a workable path.

I am starting a new solution and wanted to use Razor App UI running on Service Fabric. When I run through a New Service Fabric Solution and select the ASP.NET Core Web Application option, there are is only "No Authentication" as an option displayed (unlike with local IIS). I would like the Application (UI) to use Windows Authentication. It's be running on a On Prem Cluster accessible internally.

Is this option available and able to be configured once I have created the application? I have done something previously with an Angular app and had to update the ServiceInstanceListener to use the HttpSys, although this was only a POC and didn't get to a Production instance.

Is this still viable way to go with a Razor App?

If not, what would be your recommendations? (I would like to use Service Fabric Cluster rather than IIS)

My preferred application architecture would be:

Advice and thoughts would be very much appreciated. Apologies if this is the wrong forum - not sure where is.

Many thanks, Paul

craftyhouse commented 3 years ago

"I would like the Application (UI) to use Windows Authentication. It's be running on a On Prem Cluster accessible internally."

Does this help answer your question? https://azure.microsoft.com/en-us/blog/windows-authentication-in-service-fabric-and-asp-net-core-2-0/