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

Already on GitHub? Sign in to your account

Connect middleware to handle web based OAuth authorization #20

wants to merge 1 commit into


None yet
3 participants

linus commented Sep 8, 2011

As discussed, here is a connect-middleware (session based) that handles the web based OAuth authorization. It mounts a route on the specified path. When a user is getting that path, they will be redirected to Dropbox for authorization of the app. On successful authorization, Dropbox will redirect the user back to the same path, where we store the token and secret in the session.

I'm not crazy about the method used, as I feel a consumer of the dropbox library might want greater freedom on how to handle the oauth token/secret, so if you have any suggestions, I'd be happy to rewrite it.

sreuter commented May 10, 2012

Hey Linus! I really like the idea, but it looks like the patch doesn't work anymore.. at least with newer versions of dropbox-node. Do you have an updated version that works with dropbox-node 0.4.0?

linus commented May 10, 2012

Nope, sorry! Feel free to use this as a starting point, of course!

sreuter commented May 11, 2012

Allrighty, we're using everyauth now for the initial account linking ;-)

@evnm evnm closed this Mar 31, 2014

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