shareplum icon indicating copy to clipboard operation
shareplum copied to clipboard

Unable to authenticate on Office365 account with 2FA enabled

Open bimpbomp opened this issue 4 years ago • 5 comments

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.')

bimpbomp avatar Apr 15 '21 14:04 bimpbomp

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 .

jasonrollins avatar May 08 '21 02:05 jasonrollins

@jasonrollins is there any news about this yet?

premium3722 avatar Oct 14 '21 19:10 premium3722

any news?

rvenancio2 avatar Feb 27 '22 11:02 rvenancio2

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.

DeSjeik avatar Mar 01 '22 10:03 DeSjeik

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?

aaguilo avatar Jan 31 '23 18:01 aaguilo