jasonrollins / shareplum

Pythonic SharePoint
MIT License
178 stars 97 forks source link

Unable to authenticate on Office365 account with 2FA enabled #162

Open bimpbomp opened 3 years ago

bimpbomp commented 3 years ago

I get the below error when trying to authenticate with the correct username and password. I am fairly certain this is due to the lack of a 2FA input, but I cannot find a function for this in the documentation. Is this supported by SharePlum in it's current state? If not, is there a known workaround?

File "C:\Users\uname\AppData\Local\Programs\Python\Python37-32\lib\site-packages\shareplum\office365.py", line 80, in get_security_token raise Exception('Error authenticating against Office 365. Error from Office 365:', message[0].text) Exception: ('Error authenticating against Office 365. Error from Office 365:', 'AADSTS50126: Error validating credentials due to invalid username or password.')

jasonrollins commented 3 years ago

Sorry there is currently no support for two factor authentication.

On Thu, Apr 15, 2021 at 9:25 AM Toby @.***> wrote:

I get the below error when trying to authenticate with the correct username and password. I am fairly certain this is due to the lack of a 2FA input, but I cannot find a function for this in the documentation. Is this supported by SharePlum in it's current state? If not, is there a known workaround?

File "C:\Users\tmorgan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\shareplum\office365.py", line 80, in get_security_token raise Exception('Error authenticating against Office 365. Error from Office 365:', message[0].text) Exception: ('Error authenticating against Office 365. Error from Office 365:', 'AADSTS50126: Error validating credentials due to invalid username or password.')

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jasonrollins/shareplum/issues/162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOVTVWZCCX4APSEH66TFX3TI3ZNVANCNFSM427TSBLQ .

premium3722 commented 3 years ago

@jasonrollins is there any news about this yet?

rvenancio2 commented 2 years ago

any news?

DeSjeik commented 2 years ago

You can use an app password to circumvent this issue. You can set your app password via https://account.activedirectory.windowsazure.com/AppPasswords.aspx and use that as the login details to connect to sharepoint.

aaguilo commented 1 year ago

Hello, After this Microsoft news https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online of the deprecation of basic authentication, how can we continue working with shareplum if it doesn't support MFA?