Open cdecker opened 12 years ago
I'm getting the same behavior with the prebind.js example
have you finally found something?
@thepug The pre-bin request raise a Error on HTTP put. Reason: bad_key
https://gist.github.com/f60fb0423454ee93557c (the log cover only one /pre-bind request)
here my request:
self.init = (options) ->
self.debug = options.debug
Presence.Utils.log "Initializing XMPP client"
prebind_data = $build("body",
to: domain
rid: (''+Math.floor(Math.random() * 4294967295))
wait: "60"
hold: "1"
).toString()
$.ajax
type: "POST"
url: prebind_service
contentType: "text/xml"
processData: false
dataType: "xml"
data: prebind_data
error: (data) ->
console.log data
self.connect($("li.login").data("user-slug")+"@"+domain, "AuthenticationByCookie>>"+cookie)
success: (data) ->
self.attach(data)
$(window).unload ->
console.log "[WINDOW] unload -> disconnect()"
Presence.Core.disconnect()
return
return
It looks like anonymous logins are turned off. I don't see it in the list of auth features available.
I installed the pre-bind module as instruvted. The GET handler works as expected, but when I try the to get a new session with
curl -d "<body to='jabber.my.tld' rid='1234567' wait='60' hold='1' />" http://localhost:5280/http-pre-bind/
I only get empty responses.
The log file does not help either: