One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Shahaf L.
10 years agoNew member | Level 1
How to add 1Password to the authentication view using SwiftyDropbox?
Hi :)
I’m using Dropbox.authorizeFromController(self) in my app to allow users to authorize their Dropbox account.
What I want to do is, add a 1Password button to the web view that is displayed if the user doesn’t have the Dropbox app installed.
This developer managed to do it but I’m not sure how he did it.
Is there a way to generate the authentication URL and load it in a web view or is there another way to do it?
Thanks :)
- Greg-DB
Dropbox Staff
Hi Shahaf, that certainly would be a nice feature to have in the SDK, so I'll be sure to send this along as a feature request.
Anyway, that seems to be the 1Password App Extension, which can be found here:
https://github.com/AgileBits/onepassword-app-extension
We at Dropbox can't really offer developer support for integrating that of course, since we didn't make it, but if you need any help with that I'm sure the friendly folks over at AgileBits would be happy to help.
Also, SwiftyDropbox itself is open source, so you can modify it if necessary if you wanted to add that directly. (Pull requests welcome. :-))
Alternatively, if you wanted to implement the app authorization flow separately from SwiftyDropbox, (e.g., to load it in a web view you control completely) you could certainly do that too. Dropbox API v2 uses OAuth 2, and you can find the documentation for our OAuth 2 endpoints in the API v2 HTTP documentation.
- Shahaf L.New member | Level 1
Hi Gregory,
I’ll make a custom view using the HTTP API until it will be a part of the SwiftyDropbox API.
Thanks for sending my feature request and for the quick help :)
- Greg-DB
Dropbox Staff
To follow up here, the latest version of SwiftyDropbox does now have support for the 1Password extension in the app authorization flow, by virtue of now using SFSafariViewController, which automatically has access to extensions.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,948 PostsLatest Activity: 41 minutes ago
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!