dropbox-sdk-js
dropbox-sdk-js copied to clipboard
popup oauth?
Where has the popup oauth method gone? Will you bring it back? How would one go about implementing this?
It sounds like you're referring to the Dropbox.AuthDriver.Popup
functionality in the old dropbox-js library. This dropbox-sdk-js library is entirely new, and doesn't share code with that one. I'll send this along as a feature request for a pop-up authorization flow in this SDK like the old one had.
(You can see how that's implemented in the code for Dropbox.AuthDriver.Popup
if you want to reproduce it though.)
Is there any chance we will see this implemented? I find it rather hard to integrate our single page app without this feature.
The chooser/saver dialogs would be perfect from a usability perspective: they provide a save/load dialog inside a popup coupled with an authentication - however afaik they lack the ability to save a javascript data-blob - so a plain client-side solution is not possible.
The old SDK did a good job hiding this URL manipulation/extraction procedure from the dev.
Thanks for the feedback @martin-y . Unfortunately, no, I'm not aware of any immediate plans to implement this.
@greg-db why can't we just have a getAcessToken()
function that returns a promise which opens up a popup window and returns the access token once the promise resolves?
I think the currently implemented way of returning the access token in the URL is one of the worst ways an API could treat developers 😒
@yassbaat Thanks for the feedback! I'll add this to the feature request.
@greg-db Any news on that feature request?
@ivocass No, I'm afraid I don't have any news on this.
hey guys any updated yet on implementing chooser in sdk ?just like we do in dropins.js
@BabuBahir No, unfortunately I don't have an update on this request.
Not an official solution but this might support your needs: https://github.com/rogebrd/dropbox-oauth-popup