-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
Google drive authentication #1562
Comments
Hello 👋 Thank you for taking the time to open this issue with floccus. I know it's frustrating when software I look forward to working with you on this issue |
I cannot reproduce this, sorry. Can you try again, do you have other details that I could try to reproduce? |
I had the same problem on ungoogled chromium. I managed to sign in eventually by exporting my floccus profile from a working browser and then importing it on chromium, as described here #1267 (comment) |
Sometimes Google refuses to sign people in using floccus, but I don't know why, I haven't been able to reproduce this so far. |
I'm experiencing the same error |
It might be related to using a VPN that google considers a potential bot address and requires extra login steps (captcha). |
happening to me too with floccus app v5.2.5 on samsung S23 running android 14 (and chrome browser). after I select the google account to be used and I confirm to continue the app returns to previous page (login with google) without showing any error (please consider adding at least an error message). I have also tried importing a profile from browser, and at first it seems to be good, but on sync I get this error: the log is useless: 2024-08-23T09:34:04.390Z Starting sync process for account mio |
I'll see if I Google provides a more detailed error message on what exactly is failing |
In the meantime, I checked the Google API console: The error rate for floccus is currently hovering at around 0.1% from 60000 requests per hour, so this is not a very widespread phenomenon, I would say. Perhaps this is a form of censorship? May I ask which countries you reside in? |
Same country as you. |
huh |
On Ungoogled Chromium this issue is expected as Google does not recognize the redirect URL that they use ( 🙈 ) |
see #1562 Signed-off-by: Marcel Klehr <[email protected]>
In the latest release the exact error should be logged |
Can you please post a log of an unsuccessful sync attempt here? |
@marcelklehr I am experiencing an auth error as well.
I am using floccus 5.4.0 with Chrome 131.0.6778.205 and Firefox 133.0.3 on Windows 10 Pro 10.0.19045. I am authenticating to a Google Workspace enterprise account and can successfully authenticate/re-authenticate to the account across multiple Chrome profiles and in Firefox. I have a hundred or so bookmarks. I set up the account and had no sync issues while connected to a US Mullvad server. I tried to set it up again today without the VPN (still US-based) and experienced the same error--can authenticate to the Google account but get the E018 error. I am pretty available the next few weeks to troubleshoot with you. I am a domain admin and superadmin so I can pull any logs you need from the Workspace. |
Hello @stutopp Can you try debugging the network request to google for authentication to see what exactly google returns (possibly a reason for the failure)? Firefox
Chrome
|
@marcelklehr I was able to find the exact API error and identified a fix. The error was that the Workspace did not have "Allow third-party apps for Drive files" enabled. In my case, it was disabled in a resent configuration update, so the timing checks out. The relevant response is below (with headers removed for brevity). "response": {
"status": 403,
"statusText": "",
"httpVersion": "http/2.0",
"headers": [
<deleted>
],
"cookies": [],
"content": {
"size": 281,
"mimeType": "application/json",
"text": "{\n
\"error\": {\n
\"code\": 403,\n
\"message\": \"The domain administrators have disabled Drive apps.\",\n
\"errors\": [\n {\n
\"message\": \"The domain administrators have disabled Drive apps.\",\n
\"domain\": \"global\",\n
\"reason\": \"domainPolicy\"\n
}\n ]\n
}\n
}\n"
},
"redirectURL": "",
"headersSize": -1,
"bodySize": -1,
"_transferSize": 420,
"_error": null,
"_fetchedViaServiceWorker": false
}, |
I'm glad we were able to figure it out, I've added a log statement to the code to make the response in this case easier to find in the future. |
Which version of floccus are you using?
5.0.10
Sync method
Google Drive
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
chromium
Which version of Nextcloud Bookmarks are you using? (if relevant)
No response
Which version of Nextcloud? (if relevant)
No response
What kind of WebDAV server are you using? (if relevant)
No response
Describe the Bug
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.
You can let the app developer know that this app doesn't comply with one or more Google validation rules.
Preberite več o tej napaki.
Če ste razvijalec storitve floccus bookmark sync, si oglejte podrobnosti o napaki.
Napaka 400: invalid_request
Expected Behavior
authenticate to google drive for bookmark save
To Reproduce
new profile - google drive
Debug log provided
The text was updated successfully, but these errors were encountered: