-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Deprecate "always authenticate" and "exception on no token" #41965
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
Conversation
wouterj
commented
Jul 3, 2021
Q | A |
---|---|
Branch? | 5.4 |
Bug fix? | no |
New feature? | no |
Deprecations? | yes |
Tickets | Ref #41613 |
License | MIT |
Doc PR | n/a |
8e434bf
to
d4e33ca
Compare
src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
Outdated
Show resolved
Hide resolved
d4e33ca
to
4bba287
Compare
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.
👍 with minor comment on the wording
@@ -34,6 +34,13 @@ class AuthorizationChecker implements AuthorizationCheckerInterface | |||
|
|||
public function __construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, bool $alwaysAuthenticate = false, bool $exceptionOnNoToken = true) | |||
{ | |||
if (false !== $alwaysAuthenticate) { | |||
trigger_deprecation('symfony/security-core', '5.4', 'Not setting the 4th argument of "%s" to "false" is deprecated.', __METHOD__); |
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.
(minor) we might prefer talking about arguments names over positions in deprecation messages, see e.g. 8e3058d
Thank you @wouterj. |