We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

convexin-Eugene-S's avatar
convexin-Eugene-S
Explorer | Level 4
7 months ago

Re: Chooser (javascript) Ask fors login

Hi there,

 

I have a related issue.

 

Simply speaking, the user opens Chooser, which asks for authentication. If the user selects Gmail, it loses context and returns to the default Dropbox functionality after authentication instead of Chooser. 

 

While I agree that the Chooser may need to ask for login, that's fine. A problem arises when a user chooses Gmail to oAuth to Dropbox—instead of returning to Chooser; it returns to Dropbox/Home and regular Dropbox instead of Chooser.

 

Are there any ways to check if the user is logged in? Just perform the oAuth part of the login and then display the Chooser or force Chooser as the return page after login instead of /home (while the login is within the scope of the app), or hide alternative login options?

Thank you in advance.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    convexin-Eugene-S The Dropbox Chooser doesn't offer any options for managing the authentication process or return page, but your app shouldn't need to handle any of that anyway. The user is supposed to be automatically sent back to the Chooser functionality after signing in, regardless of their authentication method.

     

    I just tried this myself with the Dropbox Chooser, starting signed out of Dropbox, and then using Google to sign in to Dropbox, but I was automatically returned back to the Chooser after that authentication.

     

    Can you confirm if you're still seeing that issue? If so, would you be able to share a short screen recording showing it so we can take a look? Please make the window bigger before signing in so we can see the full URL (or at least as much as possible) during the process. Feel free to open a ticket here if you'd prefer to share it privately. Thanks!

    • convexin-Eugene-S's avatar
      convexin-Eugene-S
      Explorer | Level 4

      Good morning @Greg-DB,

       

      Unfortunately, I can not share my screen recording publicly.

       

      The easiest way of replicating this is via: https://www.dropbox.com/developers/chooser#javascript

      Just open Chooser and select authenticate via g-mail. When the auth process is complete, it will return to Dropbox instead of Chooser. 

       

      Please be advised we have SSO enabled.
      Any work around for this issue?

      Thank you for prompt response.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        That's no problem, we'll follow up with you privately shortly and look into this. I don't have a workaround to share right now as we'll need to reproduce it first.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 2 hours ago
325 Following

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!