ejabberd and External Authentication in Ruby

I just spent far far to long trying to get an ejabberd service to authenticate with an external Ruby script. In the hopes of saving someone else the trouble I’ve thrown together this gist.

3 comments so far

This looks awesome, but I’m not sure it does what I need. I’m actually looking to autenticate ejabberd agains my rails application. I can’t see in your script the part where you actually authenticate a user agains your database. If it is not what you wanna do, where would you put it ?
thanks :)

Julien
February 18th, 2011 at 5:06 pm

Julien, I’ve created a second gist that should help show how you would use this script to authenticate against a web service. I hope this helps.

https://gist.github.com/834015

andrew
February 18th, 2011 at 5:19 pm

That’s what I thought. Thx :)

Julien
February 21st, 2011 at 4:54 am

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment