Skip to content

Commit d7a401a

Browse files
committed
feature #11324 [SecurityBundle] error helper added symfony/symfony#11147 (i3or1s)
This PR was squashed before being merged into the 2.6-dev branch (closes #11324). Discussion ---------- [SecurityBundle] error helper added symfony/symfony#11147 Added helper that extracts last authentication error and username. | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | [ #11147 ] | License | MIT | Doc PR | symfony/symfony-docs#3996 Commits ------- 1722f60 [SecurityBundle] error helper added symfony/symfony#11147
2 parents d23497a + d2028bf commit d7a401a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Resources/config/security.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
<parameter key="security.validator.user_password.class">Symfony\Component\Security\Core\Validator\Constraints\UserPasswordValidator</parameter>
4949

5050
<parameter key="security.expression_language.class">Symfony\Component\Security\Core\Authorization\ExpressionLanguage</parameter>
51+
52+
<parameter key="security.authentication_utils.class">Symfony\Component\Security\Http\Authentication\AuthenticationUtils</parameter>
5153
</parameters>
5254

5355
<services>
@@ -91,6 +93,10 @@
9193

9294
<service id="security.expression_language" class="%security.expression_language.class%" public="false" />
9395

96+
<service id="security.authentication_utils" class="%security.authentication_utils.class%">
97+
<argument type="service" id="request_stack" />
98+
</service>
99+
94100
<!-- Authorization related services -->
95101
<service id="security.access.decision_manager" class="%security.access.decision_manager.class%" public="false">
96102
<argument type="collection"></argument>

0 commit comments

Comments
 (0)