p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional XMPP Programming with JavaScript and jQuery (http://p2p.wrox.com/forumdisplay.php?f=542)
-   -   XMPP server authentication (http://p2p.wrox.com/showthread.php?t=82232)

badinar January 13th, 2011 02:39 PM

XMPP server authentication
 
Hello,

All the examples in the book requires authentication directly to the XMPP, which works fine for samples.

In my web app (like in most of the web applications) i already have an user authentication mechanism setup. I'm trying to add more functionality to the site with XMPP.

So when a user is authenticated what is the best way to use the same credentials to authenticate the user on XMPP server.

thanks.

metajack January 17th, 2011 01:50 PM

You can share the authentication database by modifying the authentication plugins of your XMPP server or HTTP server (depending on which system is the master).

You could also use SASL ANONYMOUS authentication and pass in your session cookie. You could define your own authentication based on some kind of token (this is how Google Talk does it).

You can read about how we did this at Chesspark here:
http://metajack.im/2008/08/27/migrat...-gory-details/


All times are GMT -4. The time now is 12:41 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.