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 fails when using Dropbox Business API key #7

Open
chico opened this issue Dec 16, 2016 · 0 comments
Open

OAuth fails when using Dropbox Business API key #7

chico opened this issue Dec 16, 2016 · 0 comments

Comments

@chico
Copy link

chico commented Dec 16, 2016

Fail to fetch user profile error occurs at https://github.com/jaredhanson/passport-dropbox/blob/master/lib/strategy.js#L76-L91.

The error occurs because the Dropbox Business API key does not have the permission to get an individual user's profile.

A potential fix would be to fetch the team member profiles, and select the profile with the role of team_admin.
See https://www.dropbox.com/developers/documentation/http/teams#team-members-list.

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

No branches or pull requests

1 participant