cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 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

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:confused face:/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

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

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

Polls
Are you starting new work habits this year?

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?