Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[SecurityBundle] Added csrf_token_generator and csrf_token_id as new#9587
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
names for csrf_provider and intention options
…ken_id as new (shieldo)This PR was merged into the master branch.Discussion----------[SecurityBundle] Added csrf_token_generator and csrf_token_id as newnames for csrf_provider and intention options| Q | A| ------------- | ---| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | yes| Tests pass? | yes| Fixed tickets |#9176| License | MIT| Doc PR | n/aCommits-------f2f15f5 [SecurityBundle] Added csrf_token_generator and csrf_token_id as new names for csrf_provider and intention options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I would move these 2 unset calls in the previous normalization functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Agree, that would be better. Have submitted PR#9598.
…on (shieldo)This PR was merged into the master branch.Discussion----------[SecurityBundle] minor simplification in main configurationAs per@stof's suggestion (#9587 (comment)).| Q | A| ------------- | ---| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR | n/aCommits-------0d8c34b [SecurityBundle] minor simplification in main configuration
… (ogizanagi)This PR was merged into the master branch.Discussion----------Use csrf_token_generator instead of deprecated csrf_providerThe `csrf_provider` on a security firewall has been deprecated in favor of `csrf_token_generator` in 2.8 (symfony/symfony#9587).Commits-------bd9ff10 Use csrf_token_generator instead of deprecated csrf_provider
…lfiren, Aaron Valandra, xabbuh)This PR was merged into the 2.7 branch.Discussion----------csrf_token_generator and csrf_token_id documentation| Q | A| ------------- | ---| Doc fix? | no| New docs? | yes (symfony/symfony#6554,symfony/symfony#9587)| Applies to | 2.4+| Fixed tickets |#3059,#5942Commits-------304d7a5 finish csrf_token_generator and csrf_token_id docs3ceb61c Improper markdown for versionadded.91b5e2e Updated documentation as requested by@stof and@xabbuh0044aa2 Updated csrf_in_login_form.rst to include csrf_token_id and csrf_token_generator
…enerator` to `firewalls.logout.csrf_token_manager` (MatTheCat)This PR was merged into the 6.3 branch.Discussion----------[SecurityBundle] Rename `firewalls.logout.csrf_token_generator` to `firewalls.logout.csrf_token_manager`| Q | A| ------------- | ---| Branch? | 6.3| Bug fix? | no| New feature? | no| Deprecations? | yes| Tickets | N/A| License | MIT| Doc PR |symfony/symfony-docs#17482A long time ago,#6554 replaced `CsrfProviderInterface` by `CsrfTokenGeneratorInterface`, and#9216 split the latter into `CsrfTokenManagerInterface` and `TokenGeneratorInterface`.#9587 later introduced `csrf_token_generator`, which was already wrong at the time.Given that token generators exist, it feels weird to have to set <code>csrf_token_**generator**</code> to <code>security.csrf.token_**manager**</code> as mentioned in [the documentation](https://symfony.com/doc/current/reference/configuration/security.html#csrf-token-generator).As this confusion recently led to#48339, I propose to rename `firewalls.logout.csrf_token_generator` to `firewalls.logout.csrf_token_manager`.Commits-------0a0a98a [SecurityBundle] Rename `firewalls.logout.csrf_token_generator` to `firewalls.logout.csrf_token_manager`
… (ogizanagi)This PR was merged into the master branch.Discussion----------Use csrf_token_generator instead of deprecated csrf_providerThe `csrf_provider` on a security firewall has been deprecated in favor of `csrf_token_generator` in 2.8 (symfony/symfony#9587).Commits-------bd9ff10 Use csrf_token_generator instead of deprecated csrf_provider
… (ogizanagi)This PR was merged into the master branch.Discussion----------Use csrf_token_generator instead of deprecated csrf_providerThe `csrf_provider` on a security firewall has been deprecated in favor of `csrf_token_generator` in 2.8 (symfony/symfony#9587).Commits-------bd9ff10 Use csrf_token_generator instead of deprecated csrf_provider
… (ogizanagi)This PR was merged into the master branch.Discussion----------Use csrf_token_generator instead of deprecated csrf_providerThe `csrf_provider` on a security firewall has been deprecated in favor of `csrf_token_generator` in 2.8 (symfony/symfony#9587).Commits-------bd9ff10 Use csrf_token_generator instead of deprecated csrf_provider
names for csrf_provider and intention options