We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
jeff00coder
8 years agoExplorer | Level 4
OAuth 2.0 Request, request "state" 512 chars or longer
I wish to add to an OAuth 2.0 request a value to query string parameter "state=", specifically an RSA encoded JWT that is 512 characters long.
However, Dropbox https://www.dropbox.com/oauth2/authorize is returning an error:
Error (400) "state": must be at most 500 characters, got 511.
I am not getting this error with other online file storage providers, for example, not with either Google Drive nor with Box.
Is there a way to extend the value of "state" to be longer?
Thank you, much appreciated.
No, unfortunately our /oauth2/authorize implementation only allows a 'state' value of up to 500 bytes, and there isn't a way to configure a larger limit. I'll send this along as a feature request, but I can't make any promises as to if/when that would be increased.
1 Reply
Replies have been turned off for this discussion
- Greg-DB8 years ago
Dropbox Community Moderator
No, unfortunately our /oauth2/authorize implementation only allows a 'state' value of up to 500 bytes, and there isn't a way to configure a larger limit. I'll send this along as a feature request, but I can't make any promises as to if/when that would be increased.
About 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!