Forum Discussion

3d_Schorsch's avatar
3d_Schorsch
Explorer | Level 3
3 years ago

Dropbox OAuth2. How to do it?

Hello I would like to use OAuth2 from Dropbox and use the Dropbox login for my Nextcloud (social login). For this I need the following information:

- Authorize url
- Token url
- Profile url

Can anyone help me out here?
Thanks

2 Replies

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Hi 3d_Schorsch,

    For more info about how you can initiate authorization process, you can take a look here (including how to prepare your authorize URL). There is no such things like token  URL or profile URL. It's your responsibility to organize your users profiles. About the tokens, they are result of the authorization process. You can relay on online token only (short term access, access token), when your code accessing user's Dropbox profile will live in users side browser only, or can use offline token (long term access, refresh token - together with the access one), suitable for server-side dealing with the tasks. On the same page, I just referred to, can be seen most of the access points usable for user's profile access and you may be interested in /2/openid/userinfo especially, and /2/users/get_current_account can be useful too.

    Good luck.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    3d_Schorsch In addition to the information Здравко helpfully provided, if you're interested in using Dropbox's OpenID Connect support for authentication for your site, be sure to read our OpenID Connect Guide.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!