abraunegg / onedrive

OneDrive Client for Linux
https://abraunegg.github.io
GNU General Public License v3.0
10.17k stars 865 forks source link

OneDrive authorization link returns empty page #1521

Closed tharvill-unl closed 3 years ago

tharvill-unl commented 3 years ago

Thank you for providing this wonderful service to the community.

onedrive --version onedrive v2.4.12-10-g13b3709

The symptoms of this problem are very similar if not the same as PR#1298. I get a blank browser with no HTML after authorizing the app and logging in. The PR OP had a method to draw a response URI through network inspection at the client, I'm unsure how to do that. I tried the onedrive client generated URL in two different browsers on both Windows and Linux.

I followed this guide to install the onedrive client (from source).

Bug Report Details

The symptoms of this problem are very similar if not the same as PR#1298. I get a blank browser with no HTML after authorizing the app and logging in. The PR OP had a method to draw a response URI through network inspection at the client, I'm unsure how to do that. I tried the onedrive client generated URL in two different browsers on both Windows and Linux.

Note: Please generate a full debug log whilst reproducing the issue as per https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support and email to support@mynas.com.au

onedrive --verbose --verbose
[DEBUG] homePath: HOME environment variable set
[DEBUG] homePath: /home/tom
[DEBUG] configDirBase: WARNING - no XDG_CONFIG_HOME environment variable set
[DEBUG] configDirBase: /home/tom/.config
[DEBUG] configDirName: Configuring application to use default config path
Using 'user' Config Dir: /home/tom/.config/onedrive
Using 'system' Config Dir: /etc/onedrive
[DEBUG] refreshTokenFilePath = /home/tom/.config/onedrive/refresh_token
[DEBUG] deltaLinkFilePath = /home/tom/.config/onedrive/delta_link
[DEBUG] databaseFilePath = /home/tom/.config/onedrive/items.sqlite3
[DEBUG] databaseFilePathDryRun = /home/tom/.config/onedrive/items-dryrun.sqlite3
[DEBUG] uploadStateFilePath = /home/tom/.config/onedrive/resume_upload
[DEBUG] userConfigFilePath = /home/tom/.config/onedrive/config
[DEBUG] syncListFilePath = /home/tom/.config/onedrive/sync_list
[DEBUG] systemConfigFilePath = /etc/onedrive/config
[DEBUG] businessSharedFolderFilePath = /home/tom/.config/onedrive/business_shared_folders
No user or system config file found, using application defaults
[DEBUG] sync_dir: Getting syncDir from config value sync_dir
[DEBUG] sync_dir: A '~' was found in configured sync_dir, automatically expanding as SHELL and USER environment variable is set
[DEBUG] syncDir: /home/tom/OneDrive
[DEBUG] Testing network to ensure network connectivity to Microsoft OneDrive Service
[DEBUG] Attempting to contact online service
[DEBUG] Shutting down HTTP engine as sucessfully reached OneDrive Online Service
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
[DEBUG] Configured authUrl:          https://login.microsoftonline.com/common/oauth2/v2.0/authorize
[DEBUG] Configured redirectUrl:      https://login.microsoftonline.com/common/oauth2/nativeclient
[DEBUG] Configured tokenUrl:         https://login.microsoftonline.com/common/oauth2/v2.0/token
[DEBUG] Configured driveUrl:         https://graph.microsoft.com/v1.0/me/drive
[DEBUG] Configured driveByIdUrl:     https://graph.microsoft.com/v1.0/drives/
[DEBUG] Configured sharedWithMeUrl:  https://graph.microsoft.com/v1.0/me/drive/sharedWithMe
[DEBUG] Configured itemByIdUrl:      https://graph.microsoft.com/v1.0/me/drive/items/
[DEBUG] Configured itemByPathUrl:    https://graph.microsoft.com/v1.0/me/drive/root:/
[DEBUG] Configured siteSearchUrl:    https://graph.microsoft.com/v1.0/sites?search
[DEBUG] Configured siteDriveUrl:     https://graph.microsoft.com/v1.0/sites/
[DEBUG] Downgrading all HTTP operations to HTTP/1.1 by default
[DEBUG] clientId    = d50ca740-c83f-4d1b-b616-12c519384f0c
[DEBUG] companyName = abraunegg
[DEBUG] appTitle    = OneDrive Client for Linux
Authorize this app visiting:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d50ca740-c83f-4d1b-b616-12c519384f0c&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.Read.All%20Sites.ReadWrite.All%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient

Enter the response uri: 

To Reproduce Steps to reproduce the behavior if not causing an application crash:

  1. Follow installation instructions (using either dmd or ldmd2)
  2. execute 'onedrive'
  3. use browser to obtain response URI from generated query URL
  4. See error
abraunegg commented 3 years ago

@tharvill-unl

I get a blank browser with no HTML after authorizing the app and logging in

This is 100% normal. You take the response url that is generating the blank page, and paste that in at the application response.

This process is also clearly documented here: https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#authorize-the-application-with-your-onedrive-account

This is not a bug or issue.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.