Closed abhijitmamarde closed 3 years ago
Thanks for your contribution. While I definitely want to encourage contributions, this one is probably going to fall outside the scope of this library and will have to be distributed as a separate utility/library on its own. The main reason is that querying the NTP server like this is a new and potentially unexpected behavior, and introduces new security risks which are not adequately documented in this PR. In addition, the ntp server is hardcoded (even though it's a keyword argument, the function is hidden in a closure).
The alternative to this PR that I would accept as a contribution in PyOTP is documentation on how to use chrony or ntpd to achieve this result.
added method to get totp from current correct time queried from NTP server