[GH-ISSUE #624] twofactor_gateway 0.20.0 breaks Nextcloud 31 #126

Open
opened 2026-02-26 05:33:24 +03:00 by kerem · 14 comments
Owner

Originally created by @StodaraHodan on GitHub (Feb 27, 2025).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/624

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. upgrade Nextcloud to Version 31
  2. install and enable twofactor_gateway 0.20.0

Expected behaviour

two factor query after login screen

Actual behaviour

internal server error with error in log:

Image

nextcloud.log

{
  "reqId": "ISzgnBdw1hMzmxpC0RQD",
  "level": 3,
  "time": "February 27, 2025 13:10:54",
  "remoteAddr": "",
  "user": "",
  "app": "index",
  "method": "GET",
  "url": "/index.php/apps/files/preview-service-worker.js",
  "message": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0",
  "version": "31.0.0.18",
  "exception": {
    "Exception": "Exception",
    "Message": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/Authentication/TwoFactorAuth/Manager.php",
        "line": 108,
        "function": "getProviders",
        "class": "OC\\Authentication\\TwoFactorAuth\\ProviderLoader",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/core/Middleware/TwoFactorMiddleware.php",
        "line": 87,
        "function": "isTwoFactorAuthenticated",
        "class": "OC\\Authentication\\TwoFactorAuth\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php",
        "line": 73,
        "function": "beforeController",
        "class": "OC\\Core\\Middleware\\TwoFactorMiddleware",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 106,
        "function": "beforeController",
        "class": "OC\\AppFramework\\Middleware\\MiddlewareDispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 307,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1018,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 24,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php",
    "Line": 49,
    "message": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider",
    "exception": {},
    "CustomMessage": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider"
  }
}

Server configuration

Web server: Apache/2.4.61 (Debian)

Database: mysql Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu

PHP version: 8.2

Nextcloud version: Nextcloud Hub 10 (31.0.0)

List of activated apps
Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - announcementcenter: 7.1.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - circles: 31.0.0-dev.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contactsinteraction: 1.12.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - groupfolders: 19.0.3
  - impersonate: 2.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - nextcloud_announcements: 3.0.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0-dev.1
  - previewgenerator: 5.8.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.6.1
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - spreed: 21.0.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - suspicious_login: 9.0.1
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - dashboard: 7.11.0 (installed 7.7.0)
  - encryption: 2.19.0
  - files_external: 1.23.0
  - files_rightclick: 0.15.1 (installed 0.15.1)
  - twofactor_gateway: 0.20.0 (installed 0.20.0)
  - twofactor_nextcloud_notification: 5.0.0
  - user_ldap: 1.22.0
Nextcloud configuration
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            ***REMOVED SENSITIVE VALUE***
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "defaultapp": "files",
        "default_language": "de_DE",
        "default_locale": "de_DE",
        "version": "31.0.0.18",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "log_type": "file",
        "logfile": "\/var\/www\/nextcloud\/data\/nextcloud.log",
        "loglevel": "1",
        "logdateformat": "F d, Y H:i:s",
        "remember_login_cookie_lifetime": 36000,
        "session_lifetime": 28800,
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "app_install_overwrite": [
            "twofactor_gateway",
            "groupfolders",
            "files_rightclick"
        ],
        "maintenance": false,
        "maintenance_window_start": 1,
        "enable_previews": false,
        "preview_max_x": 512,
        "preview_max_y": 512,
        "versions_retention_obligation": "auto,21",
        "trashbin_retention_obligation": "auto,21",
        "skeletondirectory": ""
    }
}

Browser

Browser name: Firefox

Browser version: 135.0

Operating system: nixos

Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
Originally created by @StodaraHodan on GitHub (Feb 27, 2025). Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/624 <!--- Please keep this note for other contributors --> ### How to use GitHub * Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are affected by the same issue. * Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue. * Subscribe to receive notifications on status change and new comments. --- ### Steps to reproduce 1. upgrade Nextcloud to Version 31 2. install and enable twofactor_gateway 0.20.0 ### Expected behaviour two factor query after login screen ### Actual behaviour internal server error with error in log: ![Image](https://github.com/user-attachments/assets/06c05850-8c2d-4054-a1a5-d3e7695bf41d) <details> <summary>nextcloud.log</summary> ``` { "reqId": "ISzgnBdw1hMzmxpC0RQD", "level": 3, "time": "February 27, 2025 13:10:54", "remoteAddr": "", "user": "", "app": "index", "method": "GET", "url": "/index.php/apps/files/preview-service-worker.js", "message": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider", "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0", "version": "31.0.0.18", "exception": { "Exception": "Exception", "Message": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider", "Code": 0, "Trace": [ { "file": "/var/www/nextcloud/lib/private/Authentication/TwoFactorAuth/Manager.php", "line": 108, "function": "getProviders", "class": "OC\\Authentication\\TwoFactorAuth\\ProviderLoader", "type": "->" }, { "file": "/var/www/nextcloud/core/Middleware/TwoFactorMiddleware.php", "line": 87, "function": "isTwoFactorAuthenticated", "class": "OC\\Authentication\\TwoFactorAuth\\Manager", "type": "->" }, { "file": "/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php", "line": 73, "function": "beforeController", "class": "OC\\Core\\Middleware\\TwoFactorMiddleware", "type": "->" }, { "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 106, "function": "beforeController", "class": "OC\\AppFramework\\Middleware\\MiddlewareDispatcher", "type": "->" }, { "file": "/var/www/nextcloud/lib/private/AppFramework/App.php", "line": 161, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/var/www/nextcloud/lib/private/Route/Router.php", "line": 307, "function": "main", "class": "OC\\AppFramework\\App", "type": "::" }, { "file": "/var/www/nextcloud/lib/base.php", "line": 1018, "function": "match", "class": "OC\\Route\\Router", "type": "->" }, { "file": "/var/www/nextcloud/index.php", "line": 24, "function": "handleRequest", "class": "OC", "type": "::" } ], "File": "/var/www/nextcloud/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php", "Line": 49, "message": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider", "exception": {}, "CustomMessage": "Could not load two-factor auth provider OCA\\TwoFactorGateway\\Provider\\SignalProvider" } } ``` </details> ### Server configuration **Web server:** Apache/2.4.61 (Debian) **Database:** mysql Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu **PHP version:** 8.2 **Nextcloud version:** [Nextcloud Hub 10](https://nextcloud.com/) (31.0.0) <details> <summary>List of activated apps</summary> ``` Enabled: - activity: 4.0.0 - admin_audit: 1.21.0 - announcementcenter: 7.1.0 - app_api: 5.0.2 - bruteforcesettings: 4.0.0 - circles: 31.0.0-dev.0 - cloud_federation_api: 1.14.0 - comments: 1.21.0 - contactsinteraction: 1.12.0 - dav: 1.33.0 - federatedfilesharing: 1.21.0 - federation: 1.21.0 - files: 2.3.1 - files_downloadlimit: 4.0.0 - files_pdfviewer: 4.0.0 - files_reminders: 1.4.0 - files_sharing: 1.23.1 - files_trashbin: 1.21.0 - files_versions: 1.24.0 - firstrunwizard: 4.0.0 - groupfolders: 19.0.3 - impersonate: 2.0.0 - logreader: 4.0.0 - lookup_server_connector: 1.19.0 - nextcloud_announcements: 3.0.0 - notifications: 4.0.0 - oauth2: 1.19.1 - password_policy: 3.0.0 - photos: 4.0.0-dev.1 - previewgenerator: 5.8.0 - privacy: 3.0.0 - profile: 1.0.0 - provisioning_api: 1.21.0 - recommendations: 4.0.0 - related_resources: 2.0.0 - richdocuments: 8.6.1 - serverinfo: 3.0.0 - settings: 1.14.0 - sharebymail: 1.21.0 - spreed: 21.0.0 - support: 3.0.0 - survey_client: 3.0.0 - suspicious_login: 9.0.1 - systemtags: 1.21.1 - text: 5.0.0 - theming: 2.6.1 - twofactor_backupcodes: 1.20.0 - twofactor_totp: 13.0.0-dev.0 - updatenotification: 1.21.0 - user_status: 1.11.0 - viewer: 4.0.0 - weather_status: 1.11.0 - webhook_listeners: 1.2.0 - workflowengine: 2.13.0 Disabled: - dashboard: 7.11.0 (installed 7.7.0) - encryption: 2.19.0 - files_external: 1.23.0 - files_rightclick: 0.15.1 (installed 0.15.1) - twofactor_gateway: 0.20.0 (installed 0.20.0) - twofactor_nextcloud_notification: 5.0.0 - user_ldap: 1.22.0 ``` </details> <details> <summary>Nextcloud configuration</summary> ``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ ***REMOVED SENSITIVE VALUE*** ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "defaultapp": "files", "default_language": "de_DE", "default_locale": "de_DE", "version": "31.0.0.18", "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***", "overwriteprotocol": "https", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "log_type": "file", "logfile": "\/var\/www\/nextcloud\/data\/nextcloud.log", "loglevel": "1", "logdateformat": "F d, Y H:i:s", "remember_login_cookie_lifetime": 36000, "session_lifetime": 28800, "filelocking.enabled": true, "memcache.local": "\\OC\\Memcache\\Redis", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0 }, "app_install_overwrite": [ "twofactor_gateway", "groupfolders", "files_rightclick" ], "maintenance": false, "maintenance_window_start": 1, "enable_previews": false, "preview_max_x": 512, "preview_max_y": 512, "versions_retention_obligation": "auto,21", "trashbin_retention_obligation": "auto,21", "skeletondirectory": "" } } ``` </details> ### Browser **Browser name:** Firefox **Browser version:** 135.0 **Operating system:** nixos <details> <summary>Browser log</summary> ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ``` </details>
Author
Owner

@FelixBuehler commented on GitHub (Feb 27, 2025):

Yes, I can confirm this for me.
Disabled the app for now:
occ app:disable twofactor_gateway

<!-- gh-comment-id:2688312444 --> @FelixBuehler commented on GitHub (Feb 27, 2025): Yes, I can confirm this for me. Disabled the app for now: `occ app:disable twofactor_gateway`
Author
Owner

@bovender commented on GitHub (Mar 14, 2025):

+1

Had to disable it too. It is really unfortunate that 2FA is not a first-class citizen in the Nextcloud world. What is the reason? Should I rather move my IAM out of NC and use, say Keycloak...? I'm puzzled.

<!-- gh-comment-id:2723795302 --> @bovender commented on GitHub (Mar 14, 2025): +1 Had to disable it too. It is really unfortunate that 2FA is not a first-class citizen in the Nextcloud world. What is the reason? Should I rather move my IAM out of NC and use, say Keycloak...? I'm puzzled.
Author
Owner

@quorle commented on GitHub (Mar 14, 2025):

Same problem here. The app is deactivated.

I absolutely need this app to send codes via Telegram. I haven't found another app yet.

This app hasn't been developed in a long time!

<!-- gh-comment-id:2726014990 --> @quorle commented on GitHub (Mar 14, 2025): Same problem here. The app is deactivated. I absolutely need this app to send codes via Telegram. I haven't found another app yet. This app hasn't been developed in a long time!
Author
Owner

@sh2515 commented on GitHub (Mar 19, 2025):

Same here, had to disable to login.

<!-- gh-comment-id:2737932551 --> @sh2515 commented on GitHub (Mar 19, 2025): Same here, had to disable to login.
Author
Owner

@serversghost commented on GitHub (Mar 21, 2025):

Same here :(

Also did anyone else get this when they disabled the app?

Failed to construct console command 'OCA\TwoFactorGateway\Command\Configure': Could not resolve OCP\ILogger! Class can not be instantiated
twofactor_gateway 0.20.0 disabled
<!-- gh-comment-id:2742099627 --> @serversghost commented on GitHub (Mar 21, 2025): Same here :( Also did anyone else get this when they disabled the app? ``` Failed to construct console command 'OCA\TwoFactorGateway\Command\Configure': Could not resolve OCP\ILogger! Class can not be instantiated twofactor_gateway 0.20.0 disabled ```
Author
Owner

@AndiDoe commented on GitHub (May 2, 2025):

Error in nextcloud-log:

<html> Exception Failed to construct console command 'OCA\TwoFactorGateway\Command\Configure': Could not resolve OCP\ILogger! Class can not be instantiated -- </html>
<!-- gh-comment-id:2846468673 --> @AndiDoe commented on GitHub (May 2, 2025): Error in nextcloud-log: <html> <body> <!--StartFragment--> Exception Failed to construct console command 'OCA\TwoFactorGateway\Command\Configure': Could not resolve OCP\ILogger! Class can not be instantiated -- <!--EndFragment--> </body> </html>
Author
Owner

@FelixBuehler commented on GitHub (May 6, 2025):

Addendum: Disabling the app via the occ command leaves traces of the app of enabled providers in your user account active and won't remove them. So if you decide to disable 2FA overall, Nextcloud has a bug (at least for me), that you always get a 2FA warning after login ("Could not load at least one of your enabled two-factor auth methods. Please contact your admin."), even if 2FA is disabled overall.

You need to remove the entries from your account (occ twofactorauth:disable USER gateway_telegram), but that doesn't work since the app no longer is active.

The solution is this:

occ twofactorauth:cleanup gateway_telegram
occ twofactorauth:cleanup gateway_signal
occ twofactorauth:cleanup gateway_sms
<!-- gh-comment-id:2856270298 --> @FelixBuehler commented on GitHub (May 6, 2025): Addendum: Disabling the app via the occ command leaves traces of the app of enabled providers in your user account active and won't remove them. So if you decide to disable 2FA overall, Nextcloud has a bug (at least for me), that you always get a 2FA warning after login ("Could not load at least one of your enabled two-factor auth methods. Please contact your admin."), even if 2FA is disabled overall. You need to remove the entries from your account (`occ twofactorauth:disable USER gateway_telegram`), but that doesn't work since the app no longer is active. The solution is this: ``` occ twofactorauth:cleanup gateway_telegram occ twofactorauth:cleanup gateway_signal occ twofactorauth:cleanup gateway_sms ```
Author
Owner

@serversghost commented on GitHub (May 7, 2025):

Addendum: Disabling the app via the occ command leaves the app traces of enables providers in your user account active and won't remove them. So if you decide to disable 2FA overall, Nextcloud has a bug (at least for me), that you always get a 2FA notification after login, even if 2FA is disabled overall.

You need to remove the entries from your account (occ twofactorauth:disable USER gateway_telegram), but that doesn't work since the app no longer is active.

The solution is this:

occ twofactorauth:cleanup gateway_telegram
occ twofactorauth:cleanup gateway_signal
occ twofactorauth:cleanup gateway_sms

In case its of any help, when I did this back in March, it fixed the server error, but I was then getting a warning on login to Nextcloud about the missing gateway, despite running the relevant occ disable, remove & cleanup commands.
I had to additionally remove gateway_telegram from my Nextcloud MySQL database.

I'm only an amateur but this is what I ran in MySQL which solved the login warning after removing twofactor_gateway.

SHOW\040TABLES\040LIKE\040'%twofactor%';
SELECT\040*\040FROM\040oc_twofactor_providers;
UPDATE\040oc_twofactor_providers\040SET\040enabled\040=\0400\040WHERE\040provider_id\040=\040'gateway_telegram';
<!-- gh-comment-id:2858142220 --> @serversghost commented on GitHub (May 7, 2025): > Addendum: Disabling the app via the occ command leaves the app traces of enables providers in your user account active and won't remove them. So if you decide to disable 2FA overall, Nextcloud has a bug (at least for me), that you always get a 2FA notification after login, even if 2FA is disabled overall. > > You need to remove the entries from your account (`occ twofactorauth:disable USER gateway_telegram`), but that doesn't work since the app no longer is active. > > The solution is this: > > ``` > occ twofactorauth:cleanup gateway_telegram > occ twofactorauth:cleanup gateway_signal > occ twofactorauth:cleanup gateway_sms > ``` In case its of any help, when I did this back in March, it fixed the server error, but I was then getting a warning on login to Nextcloud about the missing gateway, despite running the relevant occ disable, remove & cleanup commands. I had to additionally remove _gateway_telegram_ from my Nextcloud MySQL database. I'm only an amateur but this is what I ran in MySQL which solved the login warning after removing twofactor_gateway. ``` MySQL SHOW\040TABLES\040LIKE\040'%twofactor%'; SELECT\040*\040FROM\040oc_twofactor_providers; UPDATE\040oc_twofactor_providers\040SET\040enabled\040=\0400\040WHERE\040provider_id\040=\040'gateway_telegram'; ```
Author
Owner

@vitormattos commented on GitHub (Sep 11, 2025):

Hi all,

Are you still looking for this app to be updated? I’d be glad to help with the work needed to bring it up to date.
If so, it would be very helpful if you could also share your support in the following issue, where the need for new maintainers of this app is being discussed:

<!-- gh-comment-id:3282315316 --> @vitormattos commented on GitHub (Sep 11, 2025): Hi all, Are you still looking for this app to be updated? I’d be glad to help with the work needed to bring it up to date. If so, it would be very helpful if you could also share your support in the following issue, where the need for new maintainers of this app is being discussed: - https://github.com/nextcloud/twofactor_gateway/issues/454#issuecomment-3276728446
Author
Owner

@henmohr commented on GitHub (Oct 6, 2025):

Hello. Tested branch stable31 on Nextcloud 31 and works fine.

Here are the steps to reproduce it.

git clone -b stable31 https://github.com/nextcloud/twofactor_gateway.git /your/path/to/custom_apps

chown -R www-data:www-data twofactor_gateway

cd twofactor_gateway/

docker run -v .:/app composer composer install --no-dev

chown -R www-data:www-data .

occ app:enable twofactor_gateway

occ twofactorauth:gateway:status

occ twofactorauth:gateway:configure

Hope it helps.

<!-- gh-comment-id:3373167513 --> @henmohr commented on GitHub (Oct 6, 2025): Hello. Tested branch stable31 on Nextcloud 31 and works fine. Here are the steps to reproduce it. ``` git clone -b stable31 https://github.com/nextcloud/twofactor_gateway.git /your/path/to/custom_apps chown -R www-data:www-data twofactor_gateway cd twofactor_gateway/ docker run -v .:/app composer composer install --no-dev chown -R www-data:www-data . occ app:enable twofactor_gateway occ twofactorauth:gateway:status occ twofactorauth:gateway:configure ``` Hope it helps.
Author
Owner

@ADadlDudlDa commented on GitHub (Oct 7, 2025):

Hello @henmohr ,

I have never tested an not official released app, but I would try to do it.

I have a NextcloutPI installation without docker. Can you help me, what I need to do inseatd of the docker run -v .:/app composer composer install --no-dev comand?

Thank you

ADadlDudlDa

<!-- gh-comment-id:3375538043 --> @ADadlDudlDa commented on GitHub (Oct 7, 2025): Hello @henmohr , I have never tested an not official released app, but I would try to do it. I have a NextcloutPI installation without docker. Can you help me, what I need to do inseatd of the `docker run -v .:/app composer composer install --no-dev` comand? Thank you ADadlDudlDa
Author
Owner

@vitormattos commented on GitHub (Oct 7, 2025):

Hi @ADadlDudlDa

I received the permission to commit at this repository but for now I can't create releases. You will need to follow the suggested steps and build the project by yourself. Maybe I can create a release but don't will be possible send the release to appstore, by this way only will reduce some steps to you because don't will be necessary build the project, you only will download the .tar.gz file and extract at your apps folder.

<!-- gh-comment-id:3377000092 --> @vitormattos commented on GitHub (Oct 7, 2025): Hi @ADadlDudlDa I received the permission to commit at this repository but for now I can't create releases. You will need to follow the suggested steps and build the project by yourself. Maybe I can create a release but don't will be possible send the release to appstore, by this way only will reduce some steps to you because don't will be necessary build the project, you only will download the .tar.gz file and extract at your apps folder.
Author
Owner

@vitormattos commented on GitHub (Oct 7, 2025):

I have a NextcloutPI installation without docker. Can you help me, what I need to do inseatd of the docker run -v .:/app composer composer install --no-dev comand?

you need to have the composer at your environment: https://getcomposer.org/

And then, you will be able to run the command composer install --no-dev command

<!-- gh-comment-id:3377006760 --> @vitormattos commented on GitHub (Oct 7, 2025): > I have a NextcloutPI installation without docker. Can you help me, what I need to do inseatd of the docker run -v .:/app composer composer install --no-dev comand? you need to have the composer at your environment: https://getcomposer.org/ And then, you will be able to run the command `composer install --no-dev` command
Author
Owner

@vitormattos commented on GitHub (Oct 7, 2025):

Also will be necessary build the frontend with:

npm ci && npm run build

And to do this, will be necessary to have the npm at your environment.

<!-- gh-comment-id:3377013014 --> @vitormattos commented on GitHub (Oct 7, 2025): Also will be necessary build the frontend with: ```bash npm ci && npm run build ``` And to do this, will be necessary to have the npm at your environment.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/twofactor_gateway-nextcloud#126
No description provided.