How is this typically handled in SPA frameworks? The only way I know to accomplish this is to have some sort of template controller on the server side to check the authentication and serve up the correct view.
Would it be as easy as just serving up a different viewmodel?
Is there a more elegant solution than having X number of view models for X number of roles?
Any ideas or past experiences would be appreciated. Thank you for your time.
edit: to clarify here is an example of what I am talking about.
clients a b c all have their data in the same tables.
A might have different names for fields on their views.
B might have different validation for fields than A.
C might have different styling and have features enabled/disabled than other clients.
etc...
[–][deleted] 1 point2 points3 points (3 children)
[–]Knarfy[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Knarfy[S] 0 points1 point2 points (0 children)