Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4ae47e0

Browse filesBrowse 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
Copy full SHA for 4ae47e0

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Resources/config/guard.xml
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.