8000 bug #25274 [Security] Adding a GuardAuthenticatorHandler alias (weave… · symfony/symfony@4ae47e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ae47e0

Browse files
committed
bug #25274 [Security] Adding a GuardAuthenticatorHandler alias (weaverryan)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #25274). Discussion ---------- [Security] Adding a GuardAuthenticatorHandler alias | Q | A | ------------- | --- | Branch? | master | Bug fix? | kinda | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | This feature is not currently documented The `security.authentication.guard_handler` service *is* actually meant to be available for users to use. Specifically, the `authenticateUserAndHandleSuccess()` method is useful to auto-login the user after, for example, registration, but maintain all the behavior of a normal login (success behavior, trigger the login event). So, it should have an autowiring alias. Commits ------- 844c402 [Security] Adding a GuardAuthenticatorHandler alias
2 parents 46a848c + 844c402 commit 4ae47e0

File tree

1 file changed

+2
-0
lines changed
  • src/Symfony/Bundle/SecurityBundle/Resources/config

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/SecurityBundle/Resources/config/guard.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<argument type="service" id="security.token_storage" />
1414
<argument type="service" id="event_dispatcher" on-invalid="null" />
1515
</service>
16+
17+
<service id="Symfony\Component\Security\Guard\GuardAuthenticatorHandler" alias="security.authentication.guard_handler" />
1618

1719
<!-- See GuardAuthenticationFactory -->
1820
<service id="security.authentication.provider.guard"

0 commit comments

Comments
 (0)
0