ERP5Security: External Auhentication Plugin accepts Login portal type list
This allow the administrator define which Login portal types are searched.
-
Owner
shouldn't External Auhentication Plugin work by user_id ?
-
Owner
( maybe this comment does not make sense ... I don't know well how this external authentication plugin work )
-
Owner
external_login must be a reference from a login document, not the user_id of the document. (to comply with the API)
Some Login document (not necessary ERP5 Login) should be included to act as a Login reference, else erp5 cannot control how can remote login or not.
In general, ERP5 Login (or the Login Document) was introduced to allow the user to have multiple logins, specific for each platform. Nothing prevents create a Dummy Login Portal type and make getReference == getParentValue().getUserId
(Not sure I was totally clear)
-
Owner
Ah yes, thanks. Maybe what confused me is the property is named
user_id_key
and docstring says " External authentification PAS plugin which extracts the user id from HTTP request header". But if this is what we receive from user, yes, it's a definitely a kind of "login" and not "user id".