cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it 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

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

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

Greg-DB
Dropboxer

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

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

Greg-DB
Dropboxer

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.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?