Hi,
My POV:
* We should do what Alex suggests now so that we can have this ASAP. Note It would be nice
to have in 8.4 since I’d like that some LDAP extension be able to change the authservice
to use dynamically when it’s installed using the EM.
* Future: we should refactor the authentication subsystem and use components and hints,
and do as Sergiu suggested, i.e. use a chaining of authenticator component hints.
Implementation idea:
* Modify XWiki.getEvents() and onEvent() to handle the modification of the “authclass”
xproperty and to set “this.authService” in the XWiki class to the new instance.
Thanks
-Vincent
On 21 Oct 2016, at 08:57, Alexandru Cotiuga
<alexandru.cotiuga(a)xwiki.com> wrote:
Hi devs,
I'm proposing to add this new property to the *XWikiPreferences* class
since there are many authenticators, listed on
http://platform.xwiki.org/xwiki/bin/view/Features/Authentication and most
of them require the overriding of the *xwiki.authentication.authclass*
property in the *WEB-INF/xwiki.cfg* file and the restart of the wiki. So
the *authclass* is meant to keep the value of the
*xwiki.authentication.authclass
*property*.*
Please keep in mind that *xwiki.cfg* was the historical file containing the
configuration options, we're moving away from it and this can be the moment
to improve this functionality by removing the *restart wiki* step which is
often a pain for the user.
Thanks,
Alex