New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] possibility to authenticate XMPP/Prosody users against Friendica api/json #3104
Comments
This should work out of the box against "/api/account/verify_credentials.json" :-) |
That script that @fabrixxm mentioned worked nearly out of the box. I had to manually deactivate the asynchronous mode by setting the variable Because of that I'm closing this issue. |
@annando I regularly get errors with this authentication method. It works w/o problems for days and then all of a sudden I can't login anymore. 'Conversations' says wrong username or password. When this happens I can reproduce that it is related to this fatal PHP error: #7998 (comment) Any idea what might be wrong? |
Is it still an issue? I consider switching from |
But shouldn't we better authenticate over a local script or socket (e.g. provided by the daemon) instead of this overflow of HTTPS connection which may cause (paid) traffic on some hoster? |
It works perfectly fine. |
If it's on same server you should not generate traffic for a call to localhost. |
Also the total number of HTTP connects of a single call to the network page will exceed the number of HTTP connects for authentication purposes per year, I guess. |
Unfortunately |
Why do you want to do that? The authentication requests are probably around 0.00001% of the overall network traffic. |
I just checked on squeet.me. Yesterday there had been 35 requests for The total number of requests yesterday had been 1.262.511, today so far 578.027. |
Okay, that isn't much to handle. |
There is a possibility to authenticate XMPP users from ejabberd using their Friendica credentials. There is no such option for xmpp/prosody at the moment.
@annando suggested here
So, I did some research and found this:
HTTP Authentication using custom JSON protocol:
https://modules.prosody.im/mod_auth_custom_http.html
Maybe it's possible to create an addon for this.
The text was updated successfully, but these errors were encountered: