We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

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

Intermittent "code has expired", on authorization with .NET SDK

I have integrated Dropbox into a software running on a touch-screen kiosk type Win10 machine, using the provided .NET SDK.   Because a web browser is not available, the user has to generate a Dro...
  • Scott-DB's avatar
    Scott-DB
    3 years ago

    Hi @giovaniluigi,

     

    Dropbox is in the process of switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here.

     

    It seems though more at issue is the exchange a code for a token. If I understand correctly, all codes must be transferred manually from the computer to your kiosk, and so it's possible your users are sometimes taking more than the five minutes these tokens are valid for. In addition, if they don't type it in exactly correctly then it won't work.

     

    Your use case sounds like what the OAuth 2.0 Device Authorization Grant was designed for. However currently Dropbox does not offer this flow. I will however bring this up with our team to see if we can in the future.