module.config.php 25.3 KB
Newer Older
Bertrand Gauthier's avatar
Bertrand Gauthier committed
1
<?php
2

3
4
5
use UnicaenAuth\Authentication\Storage\DbFactory;
use UnicaenAuth\Authentication\Storage\LdapFactory;
use UnicaenAuth\Authentication\Storage\ShibFactory;
6
use UnicaenAuth\Controller\AuthControllerFactory;
7
8
9
10
11
use UnicaenAuth\Controller\DroitsControllerFactory;
use UnicaenAuth\Controller\UtilisateurControllerFactory;
use UnicaenAuth\Form\Droits\RoleFormFactory;
use UnicaenAuth\Guard\PrivilegeControllerFactory;
use UnicaenAuth\Guard\PrivilegeRouteFactory;
12
use UnicaenAuth\Provider\Rule\PrivilegeRuleProviderFactory;
13
14
use UnicaenAuth\Service\ShibService;
use UnicaenAuth\Service\ShibServiceFactory;
15
use UnicaenAuth\Service\UserContextFactory;
16
use UnicaenAuth\Service\UserFactory;
17
use UnicaenAuth\Service\UserMapperFactory;
18
use UnicaenAuth\View\Helper\LdapConnectViewHelper;
19
use UnicaenAuth\View\Helper\LdapConnectViewHelperFactory;
20
use UnicaenAuth\View\Helper\LocalConnectViewHelper;
21
use UnicaenAuth\View\Helper\LocalConnectViewHelperFactory;
22
use UnicaenAuth\View\Helper\ShibConnectViewHelper;
23
use UnicaenAuth\View\Helper\ShibConnectViewHelperFactory;
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use UnicaenAuth\View\Helper\UserConnection;
use UnicaenAuth\View\Helper\UserConnectionFactory;
use UnicaenAuth\View\Helper\UserCurrent;
use UnicaenAuth\View\Helper\UserCurrentFactory;
use UnicaenAuth\View\Helper\UserInfo;
use UnicaenAuth\View\Helper\UserInfoFactory;
use UnicaenAuth\View\Helper\UserProfile;
use UnicaenAuth\View\Helper\UserProfileFactory;
use UnicaenAuth\View\Helper\UserProfileSelect;
use UnicaenAuth\View\Helper\UserProfileSelectFactory;
use UnicaenAuth\View\Helper\UserProfileSelectRadioItem;
use UnicaenAuth\View\Helper\UserProfileSelectRadioItemFactory;
use UnicaenAuth\View\Helper\UserStatus;
use UnicaenAuth\View\Helper\UserStatusFactory;
use UnicaenAuth\View\Helper\UserUsurpationHelper;
39
use UnicaenAuth\View\Helper\UserUsurpationHelperFactory;
40
41
use Zend\Authentication\AuthenticationService;
use Zend\ServiceManager\Proxy\LazyServiceFactory;
42

43
$settings = [
44

45
46
47
48
49
50
51
52
53
54
    /**
     * Configuration de l'authentification locale.
     */
    'local' => [
        /**
         * Possibilité ou non de s'authentifier à l'aide d'un compte local.
         */
        'enabled' => true,
    ],

55
56
57
58
59
60
61
62
63
64
    /**
     * Configuration de l'authentification LDAP.
     */
    'ldap' => [
        /**
         * Possibilité ou non de s'authentifier via l'annuaire LDAP.
         */
        'enabled' => true,
    ],

65
66
67
    /**
     * Fournisseurs d'identité.
     */
68
    'identity_providers'  => [
69
70
        300 => 'UnicaenAuth\Provider\Identity\Basic', // en 1er
        200 => 'UnicaenAuth\Provider\Identity\Db',    // en 2e
71
        100 => 'UnicaenAuth\Provider\Identity\Ldap',  // en 3e @deprecated
72
    ],
73
74
75
76
77

    /**
     * Attribut LDAP utilisé pour le username des utilisateurs
     */
    'ldap_username' => 'supannaliaslogin',
78
79
];

80
81
return [
    'zfcuser'         => [
82
        /**
83
84
85
         * Enable registration
         * Allows users to register through the website.
         * Accepted values: boolean true or false
86
         */
87
        'enable_registration'     => true,
88
        /**
89
90
91
92
93
         * Modes for authentication identity match
         * Specify the allowable identity modes, in the order they should be
         * checked by the Authentication plugin.
         * Default value: array containing 'email'
         * Accepted values: array containing one or more of: email, username
94
         */
95
96
97
98
99
100
101
102
        'auth_identity_fields'    => ['username', 'email'],
        /**
         * Login Redirect Route
         * Upon successful login the user will be redirected to the entered route
         * Default value: 'zfcuser'
         * Accepted values: A valid route name within your application
         */
        'login_redirect_route'    => 'home',
103
        /**
104
105
106
107
         * Logout Redirect Route
         * Upon logging out the user will be redirected to the enterd route
         * Default value: 'zfcuser/login'
         * Accepted values: A valid route name within your application
108
         */
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
        'logout_redirect_route'   => 'home',
        /**
         * Enable Username
         * Enables username field on the registration form, and allows users to log
         * in using their username OR email address. Default is false.
         * Accepted values: boolean true or false
         */
        'enable_username'         => false,
        /**
         * Enable Display Name
         * Enables a display name field on the registration form, which is persisted
         * in the database. Default value is false.
         * Accepted values: boolean true or false
         */
        'enable_display_name'     => true,
        /**
         * Authentication Adapters
         * Specify the adapters that will be used to try and authenticate the user
         * Default value: array containing 'ZfcUser\Authentication\Adapter\Db' with priority 100
         * Accepted values: array containing services that implement 'ZfcUser\Authentication\Adapter\ChainableAdapter'
         */
        'auth_adapters'           => [
            300 => 'UnicaenAuth\Authentication\Adapter\Ldap', // notifié en 1er
            200 => 'UnicaenAuth\Authentication\Adapter\Db',   //         ensuite (si échec d'authentification Ldap)
            100 => 'UnicaenAuth\Authentication\Adapter\Cas',  //         ensuite (si échec d'authentification Db)
        ],

        // telling ZfcUser to use our own class
        'user_entity_class'       => 'UnicaenAuth\Entity\Db\User',
        // telling ZfcUserDoctrineORM to skip the entities it defines
        'enable_default_entities' => false,
140
    ],
141
    'bjyauthorize'    => [
142

143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
        /* role providers simply provide a list of roles that should be inserted
         * into the Zend\Acl instance. the module comes with two providers, one
         * to specify roles in a config file and one to load roles using a
         * Zend\Db adapter.
         */
        'role_providers'    => [
            /**
             * 2 rôles doivent systématiquement exister dans les ACL :
             * - le rôle par défaut 'guest', c'est le rôle de tout utilisateur non authentifié.
             * - le rôle 'user', c'est le rôle de tout utilisateur authentifié.
             */
            'UnicaenAuth\Provider\Role\Config'   => [
                'guest' => ['name' => "Non authentifié(e)", 'selectable' => false, 'children' => [
                    'user' => ['name' => "Authentifié(e)", 'selectable' => false],
                ]],
            ],
        ],

        // strategy service name for the strategy listener to be used when permission-related errors are detected
        //    'unauthorized_strategy' => 'BjyAuthorize\View\RedirectionStrategy',
        'unauthorized_strategy' => 'UnicaenAuth\View\RedirectionStrategy',

        /* Currently, only controller and route guards exist
166
         */
167
168
169
170
171
172
        'guards'                => [
            /* If this guard is specified here (i.e. it is enabled), it will block
             * access to all controllers and actions unless they are specified here.
             * You may omit the 'action' index to allow access to the entire controller
             */
            'BjyAuthorize\Guard\Controller'         => [
173
174
175
                ['controller' => 'index', 'action' => 'index', 'roles' => 'guest'],
                ['controller' => 'zfcuser', 'roles' => 'guest'],
                ['controller' => 'Application\Controller\Index', 'roles' => 'guest'],
176

177
178
179
180
181
182
183
184
                ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'etab', 'roles' => 'guest'],
                ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'apropos', 'roles' => 'guest'],
                ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'contact', 'roles' => 'guest'],
                ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'plan', 'roles' => 'guest'],
                ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'mentions-legales', 'roles' => 'guest'],
                ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'informatique-et-libertes', 'roles' => 'guest'],
                ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'refresh-session', 'roles' => 'guest'],
                ['controller' => 'UnicaenAuth\Controller\Utilisateur', 'action' => 'selectionner-profil', 'roles' => 'guest'],
185

186
187
188
                ['controller' => 'UnicaenAuth\Controller\Auth', 'action' => 'shibboleth', 'roles' => 'guest'],
                ['controller' => 'UnicaenAuth\Controller\Auth', 'action' => 'requestPasswordReset', 'roles' => 'guest'],
                ['controller' => 'UnicaenAuth\Controller\Auth', 'action' => 'changePassword', 'roles' => 'guest'],
189
            ],
190
191
        ],
    ],
192
193
    'unicaen-auth'    => $settings,
    'doctrine'        => [
194
        'driver' => [
195
            // overriding zfc-user-doctrine-orm's config
196
            'zfcuser_entity'  => [
197
                'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
198
                'paths' => [
199
200
                    __DIR__ . '/../src/UnicaenAuth/Entity/Db',
                ],
201
202
            ],
            'orm_auth_driver' => [
203
204
                'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
                'cache' => 'array',
205
                'paths' => [
206
207
                    __DIR__ . '/../src/UnicaenAuth/Entity/Db',
                ],
208
            ],
209
            'orm_default'     => [
210
                'class'   => 'Doctrine\ORM\Mapping\Driver\DriverChain',
211
                'drivers' => [
212
                    'UnicaenAuth\Entity\Db' => 'zfcuser_entity',
213
214
                    'UnicaenAuth\Entity\Db' => 'orm_auth_driver',
                ],
215
216
217
            ],
        ],
    ],
218
219
    'view_manager'    => [
        'template_map'        => [
220
            'error/403' => __DIR__ . '/../view/error/403.phtml',
221
222
        ],
        'template_path_stack' => [
223
            'unicaen-auth' => __DIR__ . '/../view',
224
225
        ],
    ],
226
    'translator'      => [
227
228
        'translation_file_patterns' => [
            [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
229
230
231
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern'  => '%s.mo',
232
233
234
            ],
        ],
    ],
235
    'router'          => [
236
        'routes' => [
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
            'auth'     => [
                'type'          => 'Literal',
                'options'       => [
                    'route'    => '/auth',
                    'defaults' => [
                        'controller' => 'UnicaenAuth\Controller\Auth',
                    ],
                ],
                'may_terminate' => false,
                'child_routes'  => [
                    'shibboleth' => [
                        'type' => 'Literal',
                        'options' => [
                            'route'    => '/shibboleth',
                            'defaults' => [
                                'action'     => 'shibboleth',
                            ],
                        ],
                    ],
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
                    'requestPasswordReset' => [
                        'type'    => 'Segment',
                        'options' => [
                            'route'    => '/request-password-reset',
                            'defaults' => [
                                'action'     => 'requestPasswordReset',
                            ],
                        ],
                    ],
                    'changePassword' => [
                        'type'    => 'Segment',
                        'options' => [
                            'route'    => '/change-password/:token',
                            'defaults' => [
                                'action'     => 'changePassword',
                            ],
                        ],
                    ],
274
275
                ],
            ],
276
277
278
279
280
            'zfcuser'     => [
                'type'          => 'Literal',
                'priority'      => 1000,
                'options'       => [
                    'route'    => '/auth',
281
                    'defaults' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
282
283
                        'controller' => 'zfcuser',
                        'action'     => 'index',
284
285
                    ],
                ],
Bertrand Gauthier's avatar
Bertrand Gauthier committed
286
                'may_terminate' => true,
287
288
289
                'child_routes'  => [
                    'login'    => [
                        'type'    => 'Literal',
290
                        'options' => [
291
                            'route'    => '/connexion',
292
                            'defaults' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
293
294
                                'controller' => 'zfcuser',
                                'action'     => 'login',
295
296
297
                            ],
                        ],
                    ],
298
299
                    'logout'   => [
                        'type'    => 'Literal',
300
                        'options' => [
301
                            'route'    => '/deconnexion',
302
                            'defaults' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
303
304
                                'controller' => 'zfcuser',
                                'action'     => 'logout',
305
306
307
308
                            ],
                        ],
                    ],
                    'register' => [
309
                        'type'    => 'Literal',
310
                        'options' => [
311
                            'route'    => '/creation-compte',
312
                            'defaults' => [
313
314
                                'controller' => 'zfcuser',
                                'action'     => 'register',
315
316
317
318
319
320
                            ],
                        ],
                    ],
                ],
            ],
            'utilisateur' => [
321
322
                'type'          => 'Literal',
                'options'       => [
323
                    'route'    => '/utilisateur',
324
                    'defaults' => [
325
326
327
                        '__NAMESPACE__' => 'UnicaenAuth\Controller',
                        'controller'    => 'Utilisateur',
                        'action'        => 'index',
328
329
                    ],
                ],
330
                'may_terminate' => true,
331
                'child_routes'  => [
332
                    'default' => [
333
                        'type'    => 'Segment',
334
                        'options' => [
335
                            'route'       => '/:action[/:id]',
336
                            'constraints' => [
337
338
                                'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'id'     => '[0-9]*',
339
                            ],
340
                            'defaults'    => [
341
                                'action' => 'index',
342
343
344
345
346
                            ],
                        ],
                    ],
                ],
            ],
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
            'droits'      => [
                'type'          => 'Literal',
                'options'       => [
                    'route'    => '/droits',
                    'defaults' => [
                        '__NAMESPACE__' => 'UnicaenAuth\Controller',
                        'controller'    => 'Droits',
                        'action'        => 'index',
                    ],
                ],
                'may_terminate' => true,
                'child_routes'  => [
                    'roles'      => [
                        'type'          => 'Segment',
                        'may_terminate' => true,
                        'options'       => [
                            'route'    => '/roles',
                            'defaults' => [
                                'action' => 'roles',
                            ],
                        ],
                        'child_routes'  => [
                            'edition'     => [
                                'type'          => 'Segment',
                                'may_terminate' => true,
                                'options'       => [
                                    'route'       => '/edition[/:role]',
                                    'constraints' => [
                                        'role' => '[0-9]*',
                                    ],
                                    'defaults'    => [
                                        'action' => 'role-edition',
                                    ],
                                ],
                            ],
                            'suppression' => [
                                'type'          => 'Segment',
                                'may_terminate' => true,
                                'options'       => [
                                    'route'       => '/suppression/:role',
                                    'constraints' => [
                                        'role' => '[0-9]*',
                                    ],
                                    'defaults'    => [
                                        'action' => 'role-suppression',
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'privileges' => [
                        'type'          => 'Literal',
                        'may_terminate' => true,
                        'options'       => [
                            'route'    => '/privileges',
                            'defaults' => [
                                'action' => 'privileges',
                            ],
                        ],
                        'child_routes'  => [
                            'modifier' => [
                                'type'          => 'Segment',
                                'may_terminate' => true,
                                'options'       => [
                                    'route'    => '/modifier',
                                    'defaults' => [
                                        'action' => 'privileges-modifier',
                                    ],
                                ],
                            ],
                        ],
                    ],
                ],
            ],
421
422
        ],
    ],
Bertrand Gauthier's avatar
Bertrand Gauthier committed
423
    // All navigation-related configuration is collected in the 'navigation' key
424
    'navigation'      => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
425
        // The DefaultNavigationFactory we configured uses 'default' as the sitemap key
426
        'default' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
427
            // And finally, here is where we define our page hierarchy
428
429
            'home' => [
                'pages' => [
430
431
432
433
                    'login'    => [
                        'label'   => _("Connexion"),
                        'route'   => 'zfcuser/login',
                        'visible' => false,
434
435
                    ],
                    'register' => [
436
                        'label'   => _("Enregistrement"),
Bertrand Gauthier's avatar
Bertrand Gauthier committed
437
438
                        'route'   => 'zfcuser/register',
                        'visible' => false,
439
440
441
442
443
                    ],
                ],
            ],
        ],
    ],
444
445
446
447
448
449
    //
    //( ! ) Warning: Declaration of
    // Application\Service\UserContextServiceAwareTrait::setUserContextService(Application\Service\UserContextService $userContextService)
    // should be compatible with
    // UnicaenAuth\Controller\UtilisateurController::setUserContextService(UnicaenAuth\Service\UserContext $userContextService)
    // in /var/www/sygal/module/Application/src/Application/Controller/UtilisateurController.php on line 34
450
451
452
453
    'service_manager' => [
        'aliases'            => [
            'Zend\Authentication\AuthenticationService' => 'zfcuser_auth_service',
            'UnicaenAuth\Privilege\PrivilegeProvider'   => 'UnicaenAuth\Service\Privilege',
454
            '\UnicaenAuth\Guard\PrivilegeController'    => 'UnicaenAuth\Guard\PrivilegeController',
455
456
457

            'unicaen-auth_user_service'               => 'UnicaenAuth\Service\User', // pour la compatibilité
            'authUserContext'                         => 'UnicaenAuth\Service\UserContext', // pour la compatibilité
458
            'AuthUserContext'                         => 'UnicaenAuth\Service\UserContext', // pour la compatibilité
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
        ],
        'invokables'         => [
            'UnicaenAuth\View\RedirectionStrategy'    => 'UnicaenAuth\View\RedirectionStrategy',
            'UnicaenAuth\Service\CategoriePrivilege'  => 'UnicaenAuth\Service\CategoriePrivilegeService',
        ],
        'abstract_factories' => [
            'UnicaenAuth\Authentication\Adapter\AbstractFactory',
        ],
        'factories'          => [
            'unicaen-auth_module_options'              => 'UnicaenAuth\Options\ModuleOptionsFactory',
            'zfcuser_auth_service'                     => 'UnicaenAuth\Authentication\AuthenticationServiceFactory',
            'UnicaenAuth\Authentication\Storage\Chain' => 'UnicaenAuth\Authentication\Storage\ChainServiceFactory',
            'UnicaenAuth\Provider\Identity\Chain'      => 'UnicaenAuth\Provider\Identity\ChainServiceFactory',
            'UnicaenAuth\Provider\Identity\Ldap'       => 'UnicaenAuth\Provider\Identity\LdapServiceFactory',
            'UnicaenAuth\Provider\Identity\Db'         => 'UnicaenAuth\Provider\Identity\DbServiceFactory',
            'UnicaenAuth\Provider\Identity\Basic'      => 'UnicaenAuth\Provider\Identity\BasicServiceFactory',
            'UnicaenAuth\Provider\Role\Config'         => 'UnicaenAuth\Provider\Role\ConfigServiceFactory',
            'UnicaenAuth\Provider\Role\DbRole'         => 'UnicaenAuth\Provider\Role\DbRoleServiceFactory',
            'UnicaenAuth\Provider\Role\Username'       => 'UnicaenAuth\Provider\Role\UsernameServiceFactory',
Bertrand Gauthier's avatar
Bertrand Gauthier committed
478
479
            'UnicaenAuth\Service\Role'                 => 'UnicaenAuth\Service\RoleServiceFactory',
            'UnicaenAuth\Service\Privilege'            => 'UnicaenAuth\Service\PrivilegeServiceFactory',
480
481
            'BjyAuthorize\Service\Authorize'           => 'UnicaenAuth\Service\AuthorizeServiceFactory', // substituion
            'zfcuser_redirect_callback'                => 'UnicaenAuth\Authentication\RedirectCallbackFactory', // substituion
482
            ShibService::class                         => ShibServiceFactory::class,
483
            'UnicaenAuth\Service\UserContext'          => UserContextFactory::class,
484
            'zfcuser_user_mapper'                      => UserMapperFactory::class,
485
            'MouchardCompleterAuth'        => 'UnicaenAuth\Mouchard\MouchardCompleterAuthFactory',
486
487
488
489
490
491
            'UnicaenAuth\Authentication\Storage\Db'   => DbFactory::class,
            'UnicaenAuth\Authentication\Storage\Ldap' => LdapFactory::class,
            'UnicaenAuth\Authentication\Storage\Shib' => ShibFactory::class,
            'UnicaenAuth\Service\User'                => UserFactory::class,
            'UnicaenAuth\Guard\PrivilegeController'   => PrivilegeControllerFactory::class,
            'UnicaenAuth\Guard\PrivilegeRoute'        => PrivilegeRouteFactory::class,
492
            'UnicaenAuth\Provider\Rule\PrivilegeRuleProvider' => PrivilegeRuleProviderFactory::class,
493
        ],
494
495
496
497
498
499
500
501
502
503
504
        'lazy_services' => [
            // Mapping services to their class names is required since the ServiceManager is not a declarative DIC.
            'class_map' => [
                'zfcuser_auth_service' => AuthenticationService::class,
            ],
        ],
        'delegators' => [
            'zfcuser_auth_service' => [
                LazyServiceFactory::class,
            ],
        ],
505
506
        'shared' => [
            'MouchardCompleterAuth'        => false,
507
508
509
510
511
512
513
514
515
        ],
        'initializers'       => [
            'UnicaenAuth\Service\UserAwareInitializer',
        ],
    ],

    'controllers'   => [
        'invokables' => [
        ],
516
517
        'factories' => [
            'UnicaenAuth\Controller\Auth'        => AuthControllerFactory::class,
518
519
            'UnicaenAuth\Controller\Utilisateur' => UtilisateurControllerFactory::class,
            'UnicaenAuth\Controller\Droits'      => DroitsControllerFactory::class,
520
        ],
521
522
523
524
    ],

    'form_elements' => [
        'invokables' => [
525
526
527
        ],
        'factories' => [
            'UnicaenAuth\Form\Droits\Role' => RoleFormFactory::class,
528
529
        ],
    ],
530

531
    'view_helpers'  => [
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
        'aliases' => [
            'userConnection'             => UserConnection::class,
            'userCurrent'                => UserCurrent::class,
            'userStatus'                 => UserStatus::class,
            'userProfile'                => UserProfile::class,
            'userInfo'                   => UserInfo::class,
            'userProfileSelect'          => UserProfileSelect::class,
            'userProfileSelectRadioItem' => UserProfileSelectRadioItem::class,
            'userUsurpation'             => UserUsurpationHelper::class,
            'localConnect'               => LocalConnectViewHelper::class,
            'ldapConnect'                => LdapConnectViewHelper::class,
            'shibConnect'                => ShibConnectViewHelper::class,
        ],
        'factories' => [
            UserConnection::class             => UserConnectionFactory::class,
            UserCurrent::class                => UserCurrentFactory::class,
            UserStatus::class                 => UserStatusFactory::class,
            UserProfile::class                => UserProfileFactory::class,
            UserInfo::class                   => UserInfoFactory::class,
            UserProfileSelect::class          => UserProfileSelectFactory::class,
            UserProfileSelectRadioItem::class => UserProfileSelectRadioItemFactory::class,
            UserUsurpationHelper::class       => UserUsurpationHelperFactory::class,
            LocalConnectViewHelper::class     => LocalConnectViewHelperFactory::class,
            LdapConnectViewHelper::class      => LdapConnectViewHelperFactory::class,
            ShibConnectViewHelper::class      => ShibConnectViewHelperFactory::class,
557
558
559
560
561
        ],
        'invokables' => [
            'appConnection' => 'UnicaenAuth\View\Helper\AppConnection',
        ],
    ],
562
];