Ejabberd is a chat server that uses XMPP as messaging protocol that you can use with a large amount of clients. In conjunction with the “xmpp” addon it can be used for a web based chat solution for your users.
$ chown ejabberd:ejabberd /path/to/friendica/bin/auth_ejabberd.php
$ chmod 700 /path/to/friendica/bin/auth_ejabberd.php
{auth_method, external}. {extauth_program, "/path/to/friendica/bin/auth_ejabberd.php"}.
{access, register, [{deny, all}]}.
{5280, ejabberd_http, [captcha, http_poll, http_bind]}
ProxyPass /http-bind http://127.0.0.1:5280/http-bind retry=0
If you want to use your Friendica installation for authentication with the prosody XMPP server, you have to do the following.
auth_http_async
module of prosodyprosody.cfg.lua
) of your prosody server to use Friendica for authentication (use your Friendica nodes domain instead of example.com)authentication = "http_async"; http_auth_url = "https://example.com/api/account/verify_credentials.json";
You can now use your Friendica account credentials to login to your prosody, there is no need to register a new account on the XMPP server.