mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 09:05:55 +03:00
[GH-ISSUE #96] XMPP support? #26
Labels
No labels
0. to triage
1. to develop
3. to review
blocked
bug
discussion
duplicate
enhancement
enhancement
gateway:signal
gateway:signal
gateway:signal
gateway:sms
gateway:telegram
hacktoberfest
help wanted
invalid
needs info
php
pull-request
question
technical debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/twofactor_gateway-nextcloud#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @poVoq on GitHub (Aug 25, 2018).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/96
Would be nice to have support for XEP-0070 https://xmpp.org/extensions/xep-0070.html
Some relevant links:
https://demo.agayon.be/
https://blog.agayon.be/xmpp_auth_django_demo.html
https://git.kingpenguin.tk/chteufleur/HTTPAuthentificationOverXMPP
Not sure with XMPP PHP library works best, but there are some options:
https://github.com/zorn-v/xmpp
https://github.com/tecnocat/xmpphp (see also other forks)
https://github.com/sandfoxme/xmpp-enabled (includes an updated version that supposedly works well)
Thanks for considering.
@Neustradamus commented on GitHub (Jan 10, 2024):
Any progress on this request?
It has been requested here too:
@stokito commented on GitHub (Sep 16, 2024):
The link to HTTPAuthentificationOverXMPP is broken but here is a GitHub mirror (may be outdated) https://github.com/chteufleur/HTTPAuthentificationOverXMPP
Basically the feature requires for an XMPP library which is anyway would be good to add for many other features. But maybe this can be solved by a SMTP to XMPP or HTTP to XMPP requests. This should be possible with the plugins for XMPP servers with mod_http_post.
Maybe XMPP BOSH (i.e. HTTP long pooling) or WebSockets can be used directly without enabling any plugins on a XMPP server. I'll try to dig into this later but maybe someone here can join.
Basically if all XMPP servers can be used with a plain HTTP to send or receive requests that should lower the bar for integration for some simplest tasks like send a notification or get messages. The Telegram API is also based on the long pooling BTW.
Also, I didn't studied the XEP itself but I didn't get how it's principally differs from the usual Data Forms.
But the XMPP auth would be a huge improvement because this can be a good alternative for a federated OAuth OIDC for a basic needs. The Prosody XMPP server you can install on your router and use by the whole family and this can make it potentially more widespread.