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

swiftydropbox and server side use of access token

Chris Prince
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).

Chris Prince
Chris Prince Reply to 2017-12-26 05:17:47Z

This does work on the server, so I assume it is the right flow. No authorization code is required on the server, just the same access token that works on the client.

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO