Is there a python script to download file from cloud with 2FA & user control?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dekel12121
    New Member
    • Oct 2022
    • 2

    Is there a python script to download file from cloud with 2FA & user control?

    Hi,
    I'm working on a project for which I would like to write a python script to talk with a server/cloud in order to download a file (either an excel file or a simple text file).

    The ideal flow:
    • User opens script on PC and enters user name & password.
    • If username & password are correct, the user is required to enter OTP, which he gets from an authentication app (such as Google Authenticator).
    • If OTP is correct, the server sends a file to the user.


    My issue is finding a server that meets these requirements:
    • I need to be able to allow & disallow access per user, namely to have the ability to manage a list of users with an access to the server.
    • I need the server to use 2FA in form of an authentication app, such as Google Authenticator.
    • Once a user is authenticated by the server - a file download will begin (server sends file to user's PC).


    I've been looking for such a service and couldn't find any.

    I would truely appreciate the help of this amazing community!
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    Hi,
    I'm working on a project for which I would like to write a python script to talk with a server/cloud in order to download a file (either an excel file or a simple text file).

    The ideal flow:
    • User opens script on PC and enters user name & password.
    • If username & password are correct, the user is required to enter OTP, which he gets from an authentication app (such as Google Authenticator).
    • If OTP is correct, the server sends a file to the user.


    My issue is finding a server that meets these requirements:
    • I need to be able to allow & disallow access per user, namely to have the ability to manage a list of users with an access to the server.
    • I need the server to use 2FA in form of an authentication app, such as Google Authenticator.
    • Once a user is authenticated by the server - a file download will begin (server sends file to user's PC).
    How about writing your own API?

    Comment

    • dekel12121
      New Member
      • Oct 2022
      • 2

      #3
      I was looking for an on-the-shlef product.
      How complicated do you think it would be to write it from scratch? What tool would you recommend to use?

      Comment

      Working...