|
11 | 11 |
|
12 | 12 | namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
13 | 13 |
|
14 |
| -use Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider; |
15 |
| -use Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider; |
16 |
| -use Symfony\Component\Security\Core\Authentication\Provider\LdapBindAuthenticationProvider; |
17 |
| -use Symfony\Component\Security\Core\Authentication\Provider\PreAuthenticatedAuthenticationProvider; |
18 | 14 | use Symfony\Component\Security\Http\AccessMap;
|
19 | 15 | use Symfony\Component\Security\Http\Authentication\CustomAuthenticationFailureHandler;
|
20 | 16 | use Symfony\Component\Security\Http\Authentication\CustomAuthenticationSuccessHandler;
|
|
27 | 23 | use Symfony\Component\Security\Http\EventListener\DefaultLogoutListener;
|
28 | 24 | use Symfony\Component\Security\Http\EventListener\SessionLogoutListener;
|
29 | 25 | use Symfony\Component\Security\Http\Firewall\AccessListener;
|
30 |
| -use Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener; |
31 |
| -use Symfony\Component\Security\Http\Firewall\BasicAuthenticationListener; |
32 | 26 | use Symfony\Component\Security\Http\Firewall\ChannelListener;
|
33 | 27 | use Symfony\Component\Security\Http\Firewall\ContextListener;
|
34 | 28 | use Symfony\Component\Security\Http\Firewall\ExceptionListener;
|
35 | 29 | use Symfony\Component\Security\Http\Firewall\LogoutListener;
|
36 |
| -use Symfony\Component\Security\Http\Firewall\RemoteUserAuthenticationListener; |
37 | 30 | use Symfony\Component\Security\Http\Firewall\SwitchUserListener;
|
38 |
| -use Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener; |
39 |
| -use Symfony\Component\Security\Http\Firewall\UsernamePasswordJsonAuthenticationListener; |
40 |
| -use Symfony\Component\Security\Http\Firewall\X509AuthenticationListener; |
41 | 31 |
|
42 | 32 | return static function (ContainerConfigurator $container) {
|
43 | 33 | $container->services()
|
44 |
| - ->set('security.authentication.listener.anonymous', AnonymousAuthenticationListener::class) |
45 |
| - ->args([ |
46 |
| - service('security.untracked_token_storage'), |
47 |
| - abstract_arg('Key'), |
48 |
| - service('logger')->nullOnInvalid(), |
49 |
| - service('security.authentication.manager'), |
50 |
| - ]) |
51 |
| - ->tag('monolog.logger', ['channel' => 'security']) |
52 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
53 |
| - |
54 |
| - ->set('security.authentication.provider.anonymous', AnonymousAuthenticationProvider::class) |
55 |
| - ->args([abstract_arg('Key')]) |
56 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
57 | 34 |
|
58 | 35 | ->set('security.authentication.retry_entry_point', RetryAuthenticationEntryPoint::class)
|
59 | 36 | ->args([
|
|
160 | 137 | ])
|
161 | 138 | ->tag('monolog.logger', ['channel' => 'security'])
|
162 | 139 |
|
163 |
| - ->set('security.authentication.listener.form', UsernamePasswordFormAuthenticationListener::class) |
164 |
| - ->parent('security.authentication.listener.abstract') |
165 |
| - ->abstract() |
166 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
167 |
| - |
168 |
| - ->set('security.authentication.listener.x509', X509AuthenticationListener::class) |
169 |
| - ->abstract() |
170 |
| - ->args([ |
171 |
| - service('security.token_storage'), |
172 |
| - service('security.authentication.manager'), |
173 |
| - abstract_arg('Provider-shared Key'), |
174 |
| - abstract_arg('x509 user'), |
175 |
| - abstract_arg('x509 credentials'), |
176 |
| - service('logger')->nullOnInvalid(), |
177 |
| - service('event_dispatcher')->nullOnInvalid(), |
178 |
| - ]) |
179 |
| - ->tag('monolog.logger', ['channel' => 'security']) |
180 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
181 |
| - |
182 |
| - ->set('security.authentication.listener.json', UsernamePasswordJsonAuthenticationListener::class) |
183 |
| - ->abstract() |
184 |
| - ->args([ |
185 |
| - service('security.token_storage'), |
186 |
| - service('security.authentication.manager'), |
187 |
| - service('security.http_utils'), |
188 |
| - abstract_arg('Provider-shared Key'), |
189 |
| - abstract_arg('Failure handler'), |
190 |
| - abstract_arg('Success Handler'), |
191 |
| - [], // Options |
192 |
| - service('logger')->nullOnInvalid(), |
193 |
| - service('event_dispatcher')->nullOnInvalid(), |
194 |
| - service('property_accessor')->nullOnInvalid(), |
195 |
| - ]) |
196 <
341A
/td> |
| - ->call('setTranslator', [service('translator')->ignoreOnInvalid()]) |
197 |
| - ->tag('monolog.logger', ['channel' => 'security']) |
198 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
199 |
| - |
200 |
| - ->set('security.authentication.listener.remote_user', RemoteUserAuthenticationListener::class) |
201 |
| - ->abstract() |
202 |
| - ->args([ |
203 |
| - service('security.token_storage'), |
204 |
| - service('security.authentication.manager'), |
205 |
| - abstract_arg('Provider-shared Key'), |
206 |
| - abstract_arg('REMOTE_USER server env var'), |
207 |
| - service('logger')->nullOnInvalid(), |
208 |
| - service('event_dispatcher')->nullOnInvalid(), |
209 |
| - ]) |
210 |
| - ->tag('monolog.logger', ['channel' => 'security']) |
211 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
212 |
| - |
213 |
| - ->set('security.authentication.listener.basic', BasicAuthenticationListener::class) |
214 |
| - ->abstract() |
215 |
| - ->args([ |
216 |
| - service('security.token_storage'), |
217 |
| - service('security.authentication.manager'), |
218 |
| - abstract_arg('Provider-shared Key'), |
219 |
| - abstract_arg('Entry Point'), |
220 |
| - service('logger')->nullOnInvalid(), |
221 |
| - ]) |
222 |
| - ->tag('monolog.logger', ['channel' => 'security']) |
223 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
224 |
| - |
225 |
| - ->set('security.authentication.provider.dao', DaoAuthenticationProvider::class) |
226 |
| - ->abstract() |
227 |
| - ->args([ |
228 |
| - abstract_arg('User Provider'), |
229 |
| - abstract_arg('User Checker'), |
230 |
| - abstract_arg('Provider-shared Key'), |
231 |
| - service('security.password_hasher_factory'), |
232 |
| - param('security.authentication.hide_user_not_found'), |
233 |
| - ]) |
234 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
235 |
| - |
236 |
| - ->set('security.authentication.provider.ldap_bind', LdapBindAuthenticationProvider::class) |
237 |
| - ->abstract() |
238 |
| - ->args([ |
239 |
| - abstract_arg('User Provider'), |
240 |
| - abstract_arg('UserChecker'), |
241 |
| - abstract_arg('Provider-shared Key'), |
242 |
| - abstract_arg('LDAP'), |
243 |
| - abstract_arg('Base DN'), |
244 |
| - param('security.authentication.hide_user_not_found'), |
245 |
| - abstract_arg('search dn'), |
246 |
| - abstract_arg('search password'), |
247 |
| - ]) |
248 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
249 |
| - |
250 |
| - ->set('security.authentication.provider.pre_authenticated', PreAuthenticatedAuthenticationProvider::class) |
251 |
| - ->abstract() |
252 |
| - ->args([ |
253 |
| - abstract_arg('User Provider'), |
254 |
| - abstract_arg('UserChecker'), |
255 |
| - ]) |
256 |
| - ->deprecate('symfony/security-bundle', '5.3', 'The "%service_id%" service is deprecated, use the new authenticator system instead.') |
257 |
| - |
258 | 140 | ->set('security.exception_listener', ExceptionListener::class)
|
259 | 141 | ->abstract()
|
260 | 142 | ->args([
|
|
0 commit comments