cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OAuth 2.0 Request, request "state" 512 chars or longer

OAuth 2.0 Request, request "state" 512 chars or longer

jeff00coder
Explorer | Level 4
Go to solution

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.

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?