I have a webapp that's a game, and only after certain score people can become friends and should be automatically added to each other friendlist.
Trying to figure out how to handle rosters in Ejabberd like this
- prevent any user from adding anyone else by him/herself
- only let webapp handle modifications to rosters ( buddylist )
Using a client JS library like strophe would not be secure I need serverside method of adding users to each others roster. Any thoughts ideas on how to do this with Ejabberd?
EDIT: Ok, it seems mod_rest for ejabberd gives restfull access to (all?) the ejabbard methods
Ok so after I was on the right track I managed to figure it out in an hour..
command:
: