Session Aware Components

Prashanth Raghu
Added about 4 years ago


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 ?



Replies (1)


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.