Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to 2FA-enabled O365 OneDrive #141

Open
didierm opened this issue Jul 26, 2022 · 2 comments
Open

Unable to connect to 2FA-enabled O365 OneDrive #141

didierm opened this issue Jul 26, 2022 · 2 comments

Comments

@didierm
Copy link

didierm commented Jul 26, 2022

Steps to reproduce

  1. install nextcloud/sharepoint app
  2. create O365 OneDrive external storage, according to provided documentation at https://github.com/nextcloud/sharepoint#how-to-add-office-365-onedrive

Expected behaviour

connectivity to the (Sharepoint-based) O365 OneDrive share

Actual behaviour

NextCloud error :
"External mount error
There was an error with message: Empty response from the server"

Server configuration

NC21

More info

  • The O365 OneDrive share is protected with 2FA (TOTP).
  • The nextcloud/sharepoint app documentation is copied verbatim from rclone (with its reference : https://rclone.org/webdav/#sharepoint-online ), but omits this specific (and essential) rclone clause : "... If you have 2FA enabled, you have to generate an app password. ..."

If nextcloud/sharepoint is unable to cope with 2FA, this should be highlighted in the documentation.

@didierm
Copy link
Author

didierm commented Jul 26, 2022

FYI, this nextcloud app describes a procedure to use OAuth2 with OneDrive by creating a OneDrive app :
https://github.com/hevelius/files_external_onedrive#configuring-oauth2

@didierm
Copy link
Author

didierm commented Jul 26, 2022

NC log output :

"Authentication Failure : AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access"

nc-sharepoint.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant