We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Oleg3
5 years agoHelpful | Level 5
Error 403 (disallowed_useragent) on sign in (with google) to dropbox to link with my android app
I make a request to Dropbox to link with my android app and select to sign in with google account.
After autorization I get the next error: Error 403 (disallowed_useragent). You cant sign in from this screen because this app doesnt comply with Google`s embedded webview police.
My request code is as shown in the documentation:
String clientIdentifier = "my_app";
DbxRequestConfig requestConfig = new DbxRequestConfig(clientIdentifier);
List<String> scopes = asList("account_info.read", "files.content.write");
Auth.startOAuth2PKCE(getApplicationContext(), APP_KEY, requestConfig, scopes);
Please help!
7 Replies
Replies have been turned off for this discussion
- Greg-DB5 years ago
Dropbox Community Moderator
Thanks for the report. It looks like you're using the Dropbox Java SDK. Can you let me know what version number of that SDK you have installed? Also, have you made any modifications to it? I just tried this and this error doesn't reproduce for me.
Additionally, please let me know what browser and version number of that browser you have installed on the system where this is being displayed.
- Oleg35 years agoHelpful | Level 5
Greg, thanks for reply.
The problem written above I have solved. the cause was in embedded webview, if a autorization link opens in full version of Google Chome - the app works fine. It was strange to see an error on Android 11 (I dont have a real device, so I was testing the app on virtual one), but in my real device (android 7) the error did not appear....
After the problem was solved, I have sent the app to test it to some guy with real device on Android 12, and ..... the error was still there:In the end it turned out that the installed Dropbox application caused this error. Unistalling it the problem disappeared and the application linked successfully. Aditionally, I did the same on my device with android 7 and I still had no problems.
Very strange....
Do you need some data to find out what happens?
- Greg-DB5 years ago
Dropbox Community Moderator
Thanks for following up. I'm glad to hear you got this working. The original error is expected if the authorization flow is processed in an web view. That's not officially supported so you should not so, and the current version of the SDK should not do so anyway.
Anyway, the second error is a different problem and is a known issue with the official Dropbox Android app itself when running on Android 11 or later. The team is working on that. One can temporarily uninstall the app to work around the issue, as you mentioned.
- Oleg35 years agoHelpful | Level 5
Thank you very much.
How could i know when this problem will be solved?
- Greg-DB5 years ago
Dropbox Community Moderator
I'll follow up here once I have an update on that.
- Greg-DB5 years ago
Dropbox Community Moderator
This should be fixed in the latest version of the official Dropbox Android app, v262.2.2. Please update to that and let us know if you're still seeing any issues. Thanks!
- Oleg35 years agoHelpful | Level 5
Yes, it works. Thanks a lot for help.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!