Project

General

Profile

Session Aware Components

Prashanth Raghu
Added about 4 years ago

Hi,

I am trying to develop a custom plugin for tigase but need to verify the authenticity of the user. While I can get the session JID of the user using plugins, I am unaware of how to do that with components ?

Can you please help me with doing it ?

Regards,

Prashanth


Replies (1)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 4 years ago

You provide very little information about your use-case, so it is hard to provide you a suggestion for optimal approach. As, in component, you do not have access to user's online session data, but you only deal with Packet objects you can rely on information which is in there. If you look at the Packet API you can find Permissions field which is set during packet processing in SM.

    (1-1/1)