Add ldap auto create user provider

- Add user provider that creates user if not yet created on the app
- Add proxy to re-use existing entity and ldap user providers
- Allow configuring mapping of ldap extra fields to user fields
- Add base mapping configuration in ldap.yaml
This commit is contained in:
Clemente Raposo 2022-08-03 11:50:21 +01:00
parent 4e945589fc
commit 8f5af3f610
5 changed files with 276 additions and 1 deletions

View file

@ -55,6 +55,7 @@ services:
$subpanelLineActions: '%module.subpanel.line_actions%'
$subpanelTopActions: '%module.subpanel.top_actions%'
$subpanelTopButtons: '%module.subpanel.top_buttons%'
$ldapAutoCreateExtraFieldsMap: '%ldap.autocreate.extra_fields_map%'
_instanceof:
App\Process\Service\ProcessHandlerInterface:
tags: [ 'app.process.handler' ]
@ -264,6 +265,10 @@ services:
arguments:
- !tagged { tag: 'massupdate.definition.mapper' }
App\Security\Ldap\AppLdapUserProviderProxy:
$ldapUserProvider: '@security.user.provider.concrete.ldap_users'
$entityUserProvider: '@security.user.provider.concrete.app_user_provider'
legacy.route.handler:
alias: App\Routes\Service\LegacyRouteHandler
public: true

View file

@ -0,0 +1,4 @@
parameters:
ldap.autocreate.extra_fields_map:
ldap.extra_fields: [ ]