I am working for a customer which has a legacy Silverlight application that is being migrated for ASP.NET MVC (.NET Framework still). This app has some reports that can only be viewed according to the following condition:
public static bool HasElevatedPrivilegies
{
get
{
return !Application.Current.IsRunningOutOfBrowser && Application.Current.HasElevatedPermissions;
}
}
So, if this returns true, user can view the report. Basically, that means that employees can only view reports if they are using the company's laptop. If they try to do it from a private laptop or a public one, the property above returns false and an error message is shown.
Now, the team has to implement this functionality in MVC. Actually, we have an api on MVC and frontend in Angular.
Is there a way to accomplish the same result using Angular/MVC? Has anyone ever faced something like this before?
Sorry if this question looks like more a brainstorm session than actually a question.
Many thanks!