You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to check if oauth2_refresh_token belongs to supplied app_key and app_secret? #246
The Dropbox API doesn't offer a way to just check if a particular refresh token corresponds to a particular app, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Can you elaborate on your use case though? That context may be helpful.
You could just attempt the refresh (e.g., via refresh_access_token in the Dropbox Python SDK): if it works, then you know the refresh token is for the app for the app key/secret you used.
Thanks for the info, I'll see what I can use then to mimic this.
The use case was just extra validation of parameters.
On initialisation of my software, I'm pulling in the app key and secret and the oauth2_refresh_token from a credentials storage and wanted to check that they belong together and no Man-in-the-Middle attack or corruption of data has happened.
Activity
greg-db commentedon Sep 24, 2020
The Dropbox API doesn't offer a way to just check if a particular refresh token corresponds to a particular app, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Can you elaborate on your use case though? That context may be helpful.
You could just attempt the refresh (e.g., via
refresh_access_tokenin the Dropbox Python SDK): if it works, then you know the refresh token is for the app for the app key/secret you used.BastianZim commentedon Sep 25, 2020
Thanks for the info, I'll see what I can use then to mimic this.
The use case was just extra validation of parameters.
On initialisation of my software, I'm pulling in the app key and secret and the oauth2_refresh_token from a credentials storage and wanted to check that they belong together and no Man-in-the-Middle attack or corruption of data has happened.
greg-db commentedon Sep 25, 2020
Got it, thanks for the context!