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

First attempt at a move to a ActionFilter based policy #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KevM
Copy link

@KevM KevM commented Feb 19, 2014

This is what I ended up with to get past my issue with the ordering of the AntiForgeryNode in the behavior chain.

This solution is also in the direction of #7. The main problem I have with this PR is that I have not removed the old behavior or behavior node yet because I cannot find a way to approximate the AntiForgeryTokenAttribute behavior because I do not know how to address the ActionFilter in the behavior chain.

        public override void Alter(ActionCall call)
        {
            call.AddBefore(new AntiForgeryNode(Salt));
        }

The action filter is hard to uniquely identify in the action call.

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

Successfully merging this pull request may close these issues.

1 participant