Jesus / dropbox_api

Ruby client library for Dropbox API v2
MIT License
171 stars 113 forks source link

Support for state param on authorization url? #27

Closed stevenmaguire closed 7 years ago

stevenmaguire commented 7 years ago

Hello! Great package. Thank you.

The Dropbox documentation says that is supports the state param when submitting an authorization url. I don't see support for that in the gem. Did I miss it? Is it supported? If not, please?

https://www.dropbox.com/developers/documentation/http/documentation

stevenmaguire commented 7 years ago

I can see now that the gem is using the OAuth2::Client object, which does support this param.

authenticator.authorize_url({
redirect_uri: 'redirect_uri', 
state: 'state'
})