Wrox Programmer Forums
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 13th, 2011, 02:39 PM
Authorized User
Join Date: Jan 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default XMPP server authentication


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.

Old January 17th, 2011, 01:50 PM
Wrox Author
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts

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:

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server Authentication kernan BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 October 19th, 2010 03:46 PM
What about NoSQL over xmpp? flossy BOOK: Professional XMPP Programming with JavaScript and jQuery 2 June 28th, 2010 02:22 PM
Secure SQL Server authentication sal ASP.NET 1.x and 2.0 Application Design 3 October 17th, 2004 04:02 PM
forms authentication with sql server 2000 Lee8mm ASP.NET 1.0 and 1.1 Professional 0 September 26th, 2003 08:58 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.