Asp.net core react.js project in VS 2022 configured with Azure Ad authentication, ID token (App type: Web App, not SPA).
Requirement: I have to authenticate all users(internal) before server "serves" or "delivers" the js app.
Reason: App will be hosted publicly, and home screen (index page) will contain intellectual data.
I found this article about "Authentication about Asp.net core and react". here is the link "Deploy" typically means "bring something to (production) server". So, no your server does not "deploy" the js file but it "serves" or "delivers" the js app. (it brings it from server to your users web browser). authentication wraps around the js files.
I really hope it is simple, just few lines code in startup class.
I have to have Azure Ad authentication before server serves any js files.
Or,
Any other better solution or, github template would be much appreciated.
Keep in mind, I am new in React, decent in asp.net.