Forums / Developer / Communication between extensions / Comment59286
Quentin Villevieille
Tuesday 25 May 2010 5:47:41 am
@Nicolas You're right, I don't use Exponential authentication system. This must be done via an external site. In my website (called "ajax_bizviewer"), after the authentication process has been done, when i ask for the current user, i get the correct user (in this case, i never get "Anonymous"). I do use the "eZUser::currentUser()" method. If I call it inside my BizLogin extension, I do get the current user. But if I call it inside my "ajax" extension, i get the anonymous user.... When I wrote about "sharing data between extensions", I meant "Is there a way to share the user's ID/info or to store it somewhere?" ... What I try to do is fairly simple. First, I want the authentication to be done by a external website. It's working fine. Secondly, I want the "ajax" extension to know which user is connected, so as to get filtered data according to his rights. @Paul Are you saying that there's no way for an extension to know the current user? As for your workarounds, I don't think it's gonna work. I have to know what user is logged in ( so as to get filtered data according to his rights)...By the way, thanks again for your help, guys! Hope I'll find a way!