Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters do not get executed when VM is attached using the Scope element (Vue) #226

Closed
marcotana opened this issue Nov 27, 2019 · 0 comments

Comments

@marcotana
Copy link

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.
2. 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.
5. 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.

dsuryd pushed a commit that referenced this issue Nov 29, 2019
@dsuryd dsuryd closed this as completed Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants