nextcloud / twofactor_gateway

🔑 Second factor provider using an external messaging gateway (SMS, Telegram, Signal)
GNU Affero General Public License v3.0
109 stars 63 forks source link

Add SMS Gateway for Flowroute or Custom SMS Gateway #218

Open JonCup opened 5 years ago

JonCup commented 5 years ago

Can you add support for Flowroute SMS Gateway or a custom option we can supply a callback url and parameter names and method(post/get). Here's a link to the flowroute api reference. https://developer.flowroute.com/api/messages/v2.1/send-an-sms/

ChristophWurst commented 5 years ago

Are you a developer? You can add it yourself and submit a pull request :)

Squidgy-Org commented 5 years ago

Hi Christoph, sorry if it's wrong to add to this thread with the question I have but maybe it's a follow on from JonCup's request. I don't like sharing data with external providers but I'd like to get 2FA SMS gateway working. I've setup an internal Raspberry Pi with a SMS/Phone hat and want to use this as a private SMS gateway. Have created a simple POC web interface, which I can use with curl to pass a URL with the mobile phone number and the SMS text, which works fine (I receive the SMS on my mobile) but I'd like to incorporate this into something like the "twofactor_gateway" app you have created. I guess its the custom option that JonCup might be suggesting above. I wouldn't put my self down as developer but if shown a few example code snippets or directed in the right direction then maybe I could put something together!

Appreciate any response.

Paul.

ChristophWurst commented 5 years ago

See https://github.com/nextcloud/twofactor_gateway/pull/185 and https://github.com/nextcloud/twofactor_gateway/pull/169 :)

Cheers

Squidgy-Org commented 5 years ago

Brilliant, thanks Christoph, I think that will be enough for me to work with :)

Squidgy-Org commented 5 years ago

Hi Christoph,

Little update, got it working yesterday... now all my accounts are able to use my own personnel built/owned SMS 2FA Authentication :) :) :)

Still work in progress but I guess I should workout how to push this back into your build at at some point.

Many thanks Paul.

ChristophWurst commented 5 years ago

Great to hear, congratulations!

Yes, please send us a pull request with your new gateway support.