-
Notifications
You must be signed in to change notification settings - Fork 37
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
OneDrive won't login with OAuth2 #56
Comments
Hi @Venthe , By just looking at the error, it looks like the login was successful and the error is caused by an unneeded/legacy code that does not do anything in the AppImage version. I will try to look into this in the next couple of days. Technically, you should be able to start the sync manually by clicking the 'Play' button. If not, please share the entire event log with two consecutive failed sync attempts. |
Play button results in another OAuth request without any interesting logs |
@Venthe , please try this updated OneDriveGUI-1.0.0_issue56-x86_64.AppImage I don't think it will resolve your login issue, but it should at least allow you to see why the login fails. If sync fails again, please provide the console output from the updated AppImage. Also provide output of the bellow commands:
|
2022-09-04 01:46:01,170 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=CLIENT_ID&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.Read.All%20Sites.ReadWrite.All%20offline_access&response_type=code&prompt=login&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
2022-09-04 01:46:01,191 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Enter the response uri:
2022-09-04 01:46:02,193 [OneDriveGUI.py:2503][fn=<lambda>][INFO] - finished worker venthe
2022-09-04 01:46:02,193 [OneDriveGUI.py:1972][fn=stop_worker][INFO] - [venthe] Waiting for worker to finish...
2022-09-04 01:46:02,193 [OneDriveGUI.py:1976][fn=stop_worker][INFO] - [venthe] Quitting thread
2022-09-04 01:46:02,193 [OneDriveGUI.py:1979][fn=stop_worker][INFO] - [venthe] Removing thread info
2022-09-04 01:46:02,193 [OneDriveGUI.py:1982][fn=stop_worker][INFO] - [GUI] Remaining running workers: {}
2022-09-04 01:46:51,140 [OneDriveGUI.py:2668][fn=get_response_url][INFO] - exec onedrive --confdir="/home/venthe/.config/onedrive/accounts/venthe" --auth-response "https://login.microsoftonline.com/common/oauth2/nativeclient?code=<CODE>"
2022-09-04 01:46:51,160 [OneDriveGUI.py:2670][fn=get_response_url][INFO] - Login performed
2022-09-04 01:47:01,906 [OneDriveGUI.py:1961][fn=__init__][INFO] - [GUI] Starting worker for profile venthe
2022-09-04 01:47:01,907 [OneDriveGUI.py:2492][fn=start_onedrive_monitor][INFO] - [GUI] Opening external login window
2022-09-04 01:47:01,944 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Using 'user' Config Dir: /home/venthe/.config/onedrive/accounts/venthe
2022-09-04 01:47:01,945 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Using config option for Global Azure AD Endpoints
2022-09-04 01:47:01,945 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Configuration file successfully loaded
2022-09-04 01:47:02,228 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Checking Application Version ...
2022-09-04 01:47:02,369 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Initializing the OneDrive API ...
2022-09-04 01:47:02,370 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Configuring Global Azure AD Endpoints
2022-09-04 01:47:02,370 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Using Curl defaults for all HTTP operations
2022-09-04 01:47:02,371 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] User Configured Rate Limit: 125000000
2022-09-04 01:47:02,371 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Authorize this app visiting:
2022-09-04 01:47:02,372 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=CLIENT_ID&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.Read.All%20Sites.ReadWrite.All%20offline_access&response_type=code&prompt=login&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
2022-09-04 01:47:02,378 [OneDriveGUI.py:2038][fn=read_stdout][INFO] - [venthe] Enter the response uri:
2022-09-04 01:47:03,396 [OneDriveGUI.py:2503][fn=<lambda>][INFO] - finished worker venthe
2022-09-04 01:47:03,396 [OneDriveGUI.py:1972][fn=stop_worker][INFO] - [venthe] Waiting for worker to finish...
2022-09-04 01:47:03,396 [OneDriveGUI.py:1976][fn=stop_worker][INFO] - [venthe] Quitting thread
2022-09-04 01:47:03,396 [OneDriveGUI.py:1979][fn=stop_worker][INFO] - [venthe] Removing thread info
2022-09-04 01:47:03,396 [OneDriveGUI.py:1982][fn=stop_worker][INFO] - [GUI] Remaining running workers: {} I've executed the same command as in |
It has worked by removing the authorization ( |
There is definitely room for improvement in the GUI as it currently does not really verify the response from Office365. This behavior most likely means that the client did not authenticate correctly. For now, you can just login manually in console by running the bellow commands. The first one will remove any pre-existing logon details, the 2nd command will prompt you to enter new response URL and the 3rd one should just verify if you are logged on correctly. If you are not prompted to enter new logon URL on the 3rd command, then the sync in GUI should work fine.
Please share the outputs if something fails. |
Hello,
I cannot run the GUI. It asks for Oauth, saves it - but when I click to start the sync it asks for oauth again.
Sync via
onedrive
cli/systemd worksThe text was updated successfully, but these errors were encountered: