mmitch / fritz

Perl module for AVM FRITZ!Box interaction via TR-064

Home Page:https://metacpan.org/release/Net-Fritz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new feature: call methods that require 2 factor authentication

fliege65 opened this issue · comments

Hi Christian, I'd appreciate, if you could implement the capability to perform actions using 2 factor authentication. I made some tries and the result is attached.
diff.txt

If you like it, you can implement it or maybe you have a better idea, I'm not perfect...
Best regards,
Matthias

Thanks!
I'll have a look at it and see how it fits the current API. But currently I don't have that much time on my hands, so this will take some time.

For which function did you need the 2FA? I did not miss the feature until now.

(And have you ever worked with subscriptions/callbacks? That is a feature I've wanted to add for quite some time, but the last times I tried, I couldn't find good documentation…)

@fliege65 What is your usecase? Which functions do you use that need the 2 factor authentication?

Hi, I used this function to create a configuration backup by script. If you have 2FA enabled, it is not possible anymore to do that. With the changes I made, you can backup the config by script, but you have to do it interactively. Maybe it is not necessary to mention it, a fully automated backup is not possible with activated 2FA. Unfortunately you can't do the 2FA by script using Google authenticator.

my fault, I shouldn't have closed this...

You could also enable push messages to get an encrypted backup from time to time (eg. just before the Fritz!Box does an update). You can configure a mailserver in your local network so the mail does not have to go out into the internet.

I still don't have much time, but now I know what the feature can be used for.
Thanks!