Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 13th, 2011, 01:39 PM
Authorized User
 
Join Date: Jan 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
  #2 (permalink)  
Old January 17th, 2011, 12:50 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

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/
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 10:00 AM.


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