Skip to content

Fixes security authentication provider cookbook article #1050

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

Closed
wants to merge 2 commits into from
Closed

Fixes security authentication provider cookbook article #1050

wants to merge 2 commits into from

Conversation

bshaffer
Copy link
Contributor

Addresses this issue:

#1033

This fixes the listener to always return a 403 when the request is not WSSE. This was previously cause for much confusion.

Also, it seems the security_factories configuration key is no longer valid, so we are now initializing the security factory as part of the AcmeDemoBundle. This is how it's done in core, but if there's a better way I will change it.

The diffs are confusing as hell for some reason. The listener is changed now so the logic is wrapped in a conditional, and the security_factories portion is replaced by a code sample from AcmeDemoBundle.

Let me know if you have any questions!

@bshaffer
Copy link
Contributor Author

The second commit, f62b646, is only relevant for Symfony 2.1. Should I submit that change to a separate branch?

The other commit, fdff03e, can be merged immediately.

@weaverryan
Copy link
Member

Hi Brent old friend!

So really nice job identifying the 2.1 changes, here's how this needs to work:

  1. One pull request based off of symfony/symfony 2.0 branch - make the pull request to the 2.0 branch

  2. Another pull request based off of symfony/symfony master branch - make the pull request to the master branch

The easiest way to do this might be to make (1) first, let me merge it in, let me merge 2.0 to master, and then do the second one based off of the new master. If you can strip off the 2.1 commit from this PR, then I can get that rolling.

Thanks!

@bshaffer
Copy link
Contributor Author

bshaffer commented Feb 1, 2012

I created this PR for 1, and will commit 2 as soon as that is merged into the master branch

https://github.com/symfony/symfony-docs/pull/1052

Next time I'm submitting a PR to Leanna. I bet she would be nicer :)

@bshaffer bshaffer closed this Feb 1, 2012
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.

2 participants