Closed f0086 closed 1 year ago
There is nothing mentioned in the most recent version of the documentation (7.1, from 2019) for the SchlundTech XML Interface regarding support for 2FA-activated accounts. I'm afraid that without proper documentation, I'll not be able to update the plugin to support whatever alternate authentication mechanism SchlundTech might offer.
If anyone can contribute reliable information regarding that, feel free to comment.
Hi,
I found out that the XML Gateway does support 2FA, see: https://help.internetx.com/display/APIXMLEN/Authentication
To get it working it's just required to add a "
A quick test with curl and some hardcoded requests showed, that it also is working ;).
I would also really appreciate if you could add support for 2FA to this project. I'm willing to help/contribute, but I'm not very familiar with python so it might take some time until I can produce some helpful code.
@couchtyp @jurica Any plan to get this implemented? I am also not very familiar with python, so I am not a huge help here :(
Sorry, that took a while. SchlundTech updated their documentation in the meantime so I've gone ahead and added the option to provide a 2FA token as part of the credentials file real quick. Testing is a bit limited on my side at the moment as I'm not actively using SchlundTech for any domains currently.
Wow, that is awesome, thanks! I will test it this week and report back.
Hi, I finally could test it a few minutes ago. It kinda works. If I put in a valid Token into the ini and quickly start certbot it works. Normally I would expect the Token to be generated on the fly. The ini should only have the secret key in it.
If there is an update I can test again. I'm a developer myself, but never used Python. Maybe I'll give PyOTP a try, when I have some spare time (unlikely in the near future).
I think I have a working copy now - working with Pyotp. As this is my first time writing Python and pushing anything to GitHub, I might need some help here (I'll read into PRs tomorrow). I inserted Pyotp via pip into the Dockerfile (as that's what I'm using).
If 2FA is enabled (new webinterface only), accessing the XML API does not work any more and teh Zones can't be changed.