Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 2.0 for native apps #243

Closed
astonbitecode opened this issue Mar 22, 2019 · 2 comments
Closed

OAuth 2.0 for native apps #243

astonbitecode opened this issue Mar 22, 2019 · 2 comments

Comments

@astonbitecode
Copy link

Being in a need to authenticate to dropbox from a native (desktop) application, it seems that that the code OAuth 2.0 flow is implemented and available only for the web apps.

However, as mentioned here for the native apps:

The current industry best practice is to use the Authorization Flow while omitting the client secret, and to use an external user agent to complete the flow.

Are there plans to support this best practice?

@jiuyangzhao
Copy link
Contributor

In this SDK, only Android part support native app. You can always write your own code to implement token flow in non Android part. Our server support both token and code flow.

@handstandsam
Copy link
Contributor

A PKCE flow is available in the latest versions. Use the method com.dropbox.core.android.Auth.startOAuth2PKCE(...)

More info on Dropbox & PKCE:
https://dropbox.tech/developers/pkce--what-and-why-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants