• Rafael Monnerat's avatar
    Reimplement SlapOSMachineAuthenticationPlugin and SlapOSShadowAuthenticationPlugin · c4d478fa
    Rafael Monnerat authored
    The reimplementation make both complaint with ERP5LoginUserManager
    
      Include custom ERP5Type_asSecurityGroupId (Required for Computer and Software Instance usage of user_id)
      machine_login was renamed to external_login to be complaint with ERP5LoginUserManager
    
      On SlapOSShadowAuthenticationPlugin, the enumerateUsers contains a huge copied code from
           ERP5LoginUserManager, which could be be factoried in a sense in future.
    
      Update related tests and code to:
    
       - Add ERP5 Login in person, Computer and Software Instance
       - Set user id while create or clone objects
       - Update ROLES and logins (for tests) to use User ID instead reference.
       - Login is defined by ERP5 Login and not by object reference.
    c4d478fa
SlapOSMachineAuthenticationPlugin.py 3.7 KB