[GH-ISSUE #21] How to configure this app and enable 2FA #8

Closed
opened 2026-02-26 05:32:21 +03:00 by kerem · 4 comments
Owner

Originally created by @kimsyversen on GitHub (May 8, 2017).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/21

Hi,

I'm not sure how to use this app. I don't really need UI, but I need a way to force 2FA. With other 2FA-methods, users are able to disable 2FA and that is not a good thing in certain situations. SMS can also be questioned, but in my situation this is acceptable.

I have a theory that it would work to install this app and use the occ utility to add/configure users, and force 2FA. By doing that, even on first time login, users would need to use 2FA via SMS. Also, they cannot deactivate it.

Is anyone able to confirm this?

Originally created by @kimsyversen on GitHub (May 8, 2017). Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/21 Hi, I'm not sure how to use this app. I don't really need UI, but I need a way to force 2FA. With other 2FA-methods, users are able to disable 2FA and that is not a good thing in certain situations. SMS can also be questioned, but in my situation this is acceptable. I have a theory that it would work to install this app and use the occ utility to add/configure users, and force 2FA. By doing that, even on first time login, users would need to use 2FA via SMS. Also, they cannot deactivate it. Is anyone able to confirm this?
kerem 2026-02-26 05:32:21 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ChristophWurst commented on GitHub (May 8, 2017):

but I need a way to force 2FA

This provider is active as soon as a phone number has been set. See https://github.com/nextcloud/twofactor_sms/blob/master/lib/Provider/SmsProvider.php#L150

I have a theory that it would work to install this app and use the occ utility to add/configure users, and force 2FA. By doing that, even on first time login, users would need to use 2FA via SMS. Also, they cannot deactivate it.

Confirmed. But feel free to just try it out 😉

<!-- gh-comment-id:299880550 --> @ChristophWurst commented on GitHub (May 8, 2017): > but I need a way to force 2FA This provider is active as soon as a phone number has been set. See https://github.com/nextcloud/twofactor_sms/blob/master/lib/Provider/SmsProvider.php#L150 > I have a theory that it would work to install this app and use the occ utility to add/configure users, and force 2FA. By doing that, even on first time login, users would need to use 2FA via SMS. Also, they cannot deactivate it. Confirmed. But feel free to just try it out 😉
Author
Owner

@ChristophWurst commented on GitHub (May 8, 2017):

Depending on the gateway you want to use, you have to use one of the two available providers or implement your own. See https://github.com/nextcloud/twofactor_sms#supported-sms-services

<!-- gh-comment-id:299880767 --> @ChristophWurst commented on GitHub (May 8, 2017): Depending on the gateway you want to use, you have to use one of the two available providers or implement your own. See https://github.com/nextcloud/twofactor_sms#supported-sms-services
Author
Owner

@kimsyversen commented on GitHub (May 8, 2017):

Thanks! I'll probably implement a norwegian Provider, then open a PR :)

<!-- gh-comment-id:299882646 --> @kimsyversen commented on GitHub (May 8, 2017): Thanks! I'll probably implement a norwegian Provider, then open a PR :)
Author
Owner

@ChristophWurst commented on GitHub (May 8, 2017):

Thanks! I'll probably implement a norwegian Provider, then open a PR :)

Awesome! Looking forward to reviewing it! :-)

<!-- gh-comment-id:299883242 --> @ChristophWurst commented on GitHub (May 8, 2017): > Thanks! I'll probably implement a norwegian Provider, then open a PR :) Awesome! Looking forward to reviewing it! :-)
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#8
No description provided.