We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
RTS S.
6 years agoHelpful | Level 6
IOS ASWebAuthenticationSession for OAuth
Previously I used a WKWebView browser control to perform the OAUth. This allowed me to trap the redirect URL to obtain the access code. My redirect URL was http://localhost/Auth Now I am using the ...
- 6 years ago
Thanks, I used the Code flow as it looked more secure.
It would seem that custom URL schemes would be as secure as LOCALHOST ... both of which can only work on the user's device.
RTS S.
Helpful | Level 6
The image did not get attached ... here it is as a link:
Greg-DB
6 years agoDropbox Staff
Thanks! Based on the code you shared, I see that you're using the "code" flow (i.e., 'response_type=code'). For the code flow, only "https://" is allowed in the redirect URI (unless on localhost), so "myapp://" wouldn't be allowed.
Instead, for client-side applications like this, you should use the "token" flow, i.e., 'response_type=token'. That does allow custom URL schemes in redirect URIs, such as "myapp://".
For more information on how to use the token flow, please refer to the /oauth2/authorize documentation.
- RTS S.6 years agoHelpful | Level 6
Thanks, I used the Code flow as it looked more secure.
It would seem that custom URL schemes would be as secure as LOCALHOST ... both of which can only work on the user's device.
- Eddyfc6 years agoNew member | Level 2{"swagger": "2.0", "basePath": "/", "paths": {"/model/metadata": {"get": {"responses": {"200": {"des
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 3 hours agoIf 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!