|
41 | 41 | import com.github.scribejava.core.model.OAuth1AccessToken; |
42 | 42 | import com.github.scribejava.core.model.OAuth1RequestToken; |
43 | 43 | import com.github.scribejava.core.model.OAuthRequest; |
| 44 | +import com.github.scribejava.core.model.OAuthConfig; |
44 | 45 | import com.github.scribejava.core.model.Response; |
45 | 46 | import com.github.scribejava.core.model.Verb; |
46 | 47 | import com.github.scribejava.core.oauth.OAuth10aService; |
@@ -287,12 +288,15 @@ private OAuthRequest oauthRequestWithParams( |
287 | 288 | if (authVersion.equals("1.0")) { |
288 | 289 | final OAuth10aService service = |
289 | 290 | OAuthManagerProviders.getApiFor10aProvider(providerName, cfg, null); |
290 | | - request = new OAuthRequest(httpVerb, url.toString(), service); |
| 291 | + |
| 292 | + final OAuthConfig config = service.getConfig(); |
| 293 | + request = new OAuthRequest(httpVerb, url.toString(), config); |
291 | 294 | } else if (authVersion.equals("2.0")) { |
292 | 295 | final OAuth20Service service = |
293 | 296 | OAuthManagerProviders.getApiFor20Provider(providerName, cfg, null); |
294 | 297 |
|
295 | | - request = new OAuthRequest(httpVerb, url.toString(), service); |
| 298 | + final OAuthConfig config = service.getConfig(); |
| 299 | + request = new OAuthRequest(httpVerb, url.toString(), config); |
296 | 300 | } else { |
297 | 301 | Log.e(TAG, "Error in making request method"); |
298 | 302 | throw new Exception("Provider not handled yet"); |
|
0 commit comments