Setting up with Django auth #3760
-
I found this script on the website, but I'm not sure how to use it. I have a django application using Django-rest-framework and Django. I want people to be able to login to the xmpp server with their django account. Is this possible? https://www.ejabberd.im/files/contributions/ejabberd_auth_bridge.py.txt |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I guess you found this script when looking for external authentication scripts: https://docs.ejabberd.im/admin/configuration/authentication/#external-script In that case, tell ejabberd to use that script for extauth, something like: auth_method: [external]
extauth_program: /etc/ejabberd/ejabberd_auth_bridge.py As the script is very old, quite probably the python code will not work with recent python versions. Regarding the ejabberd part, extauth in ejabberd has not changed in years, so that should not be a problem. |
Beta Was this translation helpful? Give feedback.
-
@badlop It looks like if you use an external auth script, the first password you accept from your script becomes that users permanent password. Is there a way to change this? |
Beta Was this translation helpful? Give feedback.
@badlop It looks like if you use an external auth script, the first password you accept from your script becomes that users permanent password. Is there a way to change this?