Dropbox token_access_type=offline issues
Hello developer, Thank you for your contributions to the open-source community. Your project is excellent!
I read an official Dropbox blog post:
https://dropbox.tech/developers/using-oauth-2-0-with-offline-access
Key concepts identified:
-
token_access_type: offlinevsonline -
response_type: codevstoken -
When
token_access_type=offline, onlyresponse_type=codeis supported
Test results:
-
response_type=codereturns arefreshToken -
response_type=tokendoesn't return arefreshToken
Current CloudServiceKit implementation:
-
Hardcodes
token_access_type=offline→ enforcesresponse_type=code -
Dropbox restriction: When using
response_type=code, custom schemeredirect_uriisn't supported (only HTTPS/localhost)
iOS development challenge:
-
Custom URI schemes are critical for iOS callback handling
-
Without custom schemes, callback implementation becomes complex
Alternative approach:
- Setting
token_access_type=onlineallows:
✅response_type=token
✅ Customredirect_uri
❌ NorefreshTokenreturned → Access token cannot be refreshed
Core question:
What's the recommended best practice for integrating Dropbox with CloudServiceKit considering these constraints?