Using external ReST API for authenticating users on Ejabberd

Hi,

I am currently using odbc(MySQL) as backend, and this is working fine as expected.

Now, for app specific tasks such as retrieving images and text, I will be using a ReST API which will have its own authentication. So, what I want is, Ejabberd should use this external ReST API for its own authentication as well.

Already, have looked at the external auth samples, but would prefer not to use an external script to achieve this.

Also, have tried to analyse the ejabberd_auth_http from contrib, but being new to Ejabberd, couldn't completely understand the right approach to make use of this. So a little information on this would be great.

Things to be achieved:
1. Complete delegation of authentication to an existing, custom third-party ReST API.
2. (PREFERRED)This delegation should smoothly integrate with Ejabberd for purposes such as registration,etc.

If you can point me to the right resources such documentation or a sample implementation of this kind, that would be really helpful.

Thank you.

Syndicate content