Looking for some guidance on how to best solve this problem: I have a dot net core 2.2 website project that is basically a container of links to other single page MVC sites (within the same domain) that, when these 'child' apps are requested (clicked), will display within the content window of my parent application. When the parent app is initially loading the AD authentication will occur, and the list of authorized site links will be loaded from a database based on the users's AD security groups/roles. When the user clicks on a child app link, the child app's controller will have an authorize attribute just to further secure it in the event the child app's URL is known. I'd like to have the parent application handle all logging, despite the child apps doing all the heavy lifting for their specific task.
Some Questions/More detail:
- Displaying the child sites in a parent div? Should i use iframes? Something else, different design?
- Parent site security? I have the AD functionality already handled and can grab the specific security groups, but should I use a cookie, token, something else? Not sure where the windows auth token gets stored though...
- Child site security? Requesting the child site is basically a GET request, but how should I secure this, and implement the role based Authorize? How to pass in the parent auth token into the child's Get request?
- Parent application handling Child logging: I need a simple method to implement logging within the child apps, but ideally it talks to the parent to handle all this. One point of contact for all child--> parent communication, with very little setup/configuration in the child. When the child app does its specific task, I want to have something like log.Info("My Message") as if it was locally configured with nlog or serilog. When logging needs to happen, it's the child app's controller where the processing will be happening. I found this link which seems interesting where the Child site posts to a method which starts a task, and another post that checks updates. call-back-from-server-to-client. How can I get from the Child's controller back to the parent?
Lots of questions, and I appreciate your help on this. Thank you!