Added support for Google's 'scope' param
This commit is contained in:
1 parent
c3f113f39b
commit
1f94997120
6 files changed
+48
-3
No files matched your search
@@ -50,7 +50,6 @@ public abstract class DefaultApi10a implements Api
|
||||
public abstract String getRequestTokenEndpoint();
|
||||
public abstract String getAccessTokenEndpoint();
|
||||
|
||||
@Override
|
||||
public OAuthService createService(String apiKey, String apiSecret, String callback)
|
||||
{
|
||||
return new OAuth10aServiceImpl( getSignatureService(),
|
||||
@@ -61,6 +60,13 @@ public abstract class DefaultApi10a implements Api
|
||||
getAccessTokenExtractor(),
|
||||
createConfig(apiKey, apiSecret, callback));
|
||||
}
|
||||
|
||||
public OAuthService createService(String apiKey, String apiSecret, String callback, String scope)
|
||||
{
|
||||
OAuthService service = createService(apiKey, apiSecret, callback);
|
||||
service.addScope(scope);
|
||||
return service;
|
||||
}
|
||||
|
||||
private OAuthConfig createConfig(String apiKey, String apiSecret, String callback)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user