Using the CompositeView component in Vue, when putting the [Authorize] attribute on a VM that connects using the Scope element, the corresponding AuthorizeFilter doesn't get executed.
1: Add [Authorize] on the CompositeViewVM class.
Put a breakpoint on the "var principal" line in the AuthorzieFilter class.
3: Debug to run the solution.
4: Visit the CompositeView sample. The breakpoint doesn't pause the execution.
Stop debugging.
Now, if you put the [Authorize] attribute on the MovieTableVM class, the breakpoint will pause execution. The difference is that the MovieTableVM is connected using the "vm.connect" API.
Using the CompositeView component in Vue, when putting the [Authorize] attribute on a VM that connects using the Scope element, the corresponding AuthorizeFilter doesn't get executed.
1: Add [Authorize] on the CompositeViewVM class.
Now, if you put the [Authorize] attribute on the MovieTableVM class, the breakpoint will pause execution. The difference is that the MovieTableVM is connected using the "vm.connect" API.