How would XMPP handle authentication?

Reading is no problem, but to write, we need to see that you hold a valid cookie on the target site with +20 reputation.