Home swiftydropbox and server side use of access token
Reply: 0

swiftydropbox and server side use of access token

Chris Prince
1#
Chris Prince Published in 2017-12-06 04:44:45Z

I am starting to use SwiftyDropbox on my iOS client, and my plan is to get the access token after successful sign-in by the user, and then send that access token to my server-- so it can make use of the users Dropbox. (This makes sense in the context of my app).

Is this the right flow? Will the access token be usable on my server?

Before I started putting SwiftyDropbox into my client app, I was reading https://www.dropbox.com/developers/reference/oauth-guide and that seemed to indicate I should send the authorization code to my server, and have it get the access token using the authorization code. Some other OAuth2 systems (e.g., Google) require this kind of flow (e.g., with Google you send an authorization code to the server, which it redeems for a refresh token, from which you get access tokens).

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317471 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO