My client uses xmpp and maybe will also use rest.
How to login?
For xmpp at the moment I need username and password.
To have passwords in cookies is not really state of the art.
After rest login I have a "credentials" cookie and I would like to use this cookie for xmpp login.
Does that kind of auth already exist?
It would be easy to send the sessionid as password.
The implementation should be easy using json_http
https://github.com/scastillo/prosody-mod_auth_json_http
socket.send(
'xmpp.login',
{
"jid": "test@evilprofessor.co.uk",
"password": "sessionid"
}
)
Any suggestions on that?
My client uses xmpp and maybe will also use rest.
How to login?
For xmpp at the moment I need username and password.
To have passwords in cookies is not really state of the art.
After rest login I have a "credentials" cookie and I would like to use this cookie for xmpp login.
Does that kind of auth already exist?
It would be easy to send the sessionid as password.
The implementation should be easy using json_http
https://github.com/scastillo/prosody-mod_auth_json_http
socket.send(
'xmpp.login',
{
"jid": "test@evilprofessor.co.uk",
"password": "sessionid"
}
)
Any suggestions on that?