fernandezpablo85/scribe-java — Issue #219: Possibility to add optional parameters to the user authentication URL
Author: sigbjod
Created: 2012-01-27 15:15:01+00:00
State: open

Would it be possible to add an optional list of parameters to the function that gets the URL used for redirecting users to the service provider? That is, it would be great to have the possibility to pass these parameters when calling the service builder, thus instantiating the entire API service in one single step.

I'm asking this as some service providers allow for one or several optional parameters in addition to the oauth_token passed in OAuth version 1.0, and I think it would be a better way of setting these parameters than concatenating them at the end of the string once the getAuthorizationUrl function has been called.

As for examples, I know of Twitter (https://dev.twitter.com/docs/api/1/get/oauth/authorize) and Flickr (http://www.flickr.com/services/api/auth.oauth.html), but I won't be surprised if there are others out there.