Take Your Search Game to the Next Level with Dropbox Dash  🚀✨ Curious how it works? Ask us here! 

Forum Discussion

pp111's avatar
pp111
Explorer | Level 4
2 months ago
Solved

OAuth broken (Missing client_id) if force_reauthentication=true

Hello,

Today it is not possible to authorize an application using OAuth if the parameter force_reauthentication is set to true (force_reauthentication=true)

The same error is displayed with the parameter prompt=login

For example this url:

https://www.dropbox.com/oauth2/authorize?client_id=6m49bsosxta8vpm&state=188620817&response_type=code&force_reauthentication=true&redirect_uri=http%3a%2f%2f127.0.0.1%3a35831%2f&token_access_type=offline&code_challenge_method=S256&code_challenge=omq_TXM9aH8GIlhUx6xT9-D20Ckz6Z46LMrWU2_uOn0

shows the error Missing client_id although the client_id is included in the request.

However, the same url but with force_reauthentication=false works fine:

https://www.dropbox.com/oauth2/authorize?client_id=6m49bsosxta8vpm&state=188620817&response_type=code&force_reauthentication=false&redirect_uri=http%3a%2f%2f127.0.0.1%3a35831%2f&token_access_type=offline&code_challenge_method=S256&code_challenge=omq_TXM9aH8GIlhUx6xT9-D20Ckz6Z46LMrWU2_uOn0

Please check it as soon as possible as the users are not able to link their accounts with our applications.

  • Hi pp111​ and De L.1​,

    The engineering team has updated me, and the issue was related to a recent migration.

    They’ve informed me that the issue should now be resolved, and you should be able to use the force_reauthentication=true or prompt=login parameter with the Auth URL for the OAuth authorization flow. We appreciate your patience as we worked through this case.

6 Replies

  • De L.1's avatar
    De L.1
    Collaborator | Level 9
    2 months ago

    iNeil​ ​ I can confirm that this has been resolved for me. Thank you for your quick response!

  • iNeil's avatar
    iNeil
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 months ago

    Hi pp111​ and De L.1​,

    The engineering team has updated me, and the issue was related to a recent migration.

    They’ve informed me that the issue should now be resolved, and you should be able to use the force_reauthentication=true or prompt=login parameter with the Auth URL for the OAuth authorization flow. We appreciate your patience as we worked through this case.

  • pp111's avatar
    pp111
    Explorer | Level 4
    2 months ago

    iNeil​, thank you for looking into it.

    Please let us know if the engineering team has an estimation on when they can fix the issue (hours, days, weeks...). Our applications are thick Windows and Mac applications that can not implement the workaround easily because it would require to update and install it on thousands of computers. 

    We are trying to decide if we should wait for Dropbox to fix it, or we should distribute an update with the workaround to all the computers, so any estimation will be very helpful.

     

  • De L.1's avatar
    De L.1
    Collaborator | Level 9
    2 months ago

    iNeil​, note that this also applies when using e.g. prompt=login, as this is equivalent to force_reapprove=true. See the Auth URL example in the related topic:

    https://www.dropboxforum.com/discussions/101000014/getting-authorization-errors-while-logging-with-php-sdk/831141

  • iNeil's avatar
    iNeil
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 months ago

    Hello pp111​,

    Thank you for bringing this to our attention.

    I was able to replicate the issue you're experiencing with the OAuth authorization flow based on the information that you have provided. It appears to occur when the force_reauthentication=true parameter is included in the Auth URL. I've escalated this to our engineering team for further investigation. Once I have an update I will let you know.

    In the meantime, as a temporary workaround, please set the force_reauthentication parameter to false in the Auth URL if your user needs to connect to your API app.

    Please feel free to let me know if you have any questions, or if there is anything else I can help you with.

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,013 PostsLatest Activity: 10 months ago
397 Following

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 or Facebook.

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!