|
|
@ -102,6 +102,8 @@ public class ServiceAuthenticator extends Authenticator {
|
|
|
|
return authState.getAccessToken();
|
|
|
|
return authState.getAccessToken();
|
|
|
|
} else if (auth == AUTH_TYPE_OAUTH) {
|
|
|
|
} else if (auth == AUTH_TYPE_OAUTH) {
|
|
|
|
AuthState authState = AuthState.jsonDeserialize(password);
|
|
|
|
AuthState authState = AuthState.jsonDeserialize(password);
|
|
|
|
|
|
|
|
if (expire)
|
|
|
|
|
|
|
|
authState.setNeedsTokenRefresh(true);
|
|
|
|
OAuthRefresh(context, provider, authState);
|
|
|
|
OAuthRefresh(context, provider, authState);
|
|
|
|
Long expiration = authState.getAccessTokenExpirationTime();
|
|
|
|
Long expiration = authState.getAccessTokenExpirationTime();
|
|
|
|
if (expiration != null)
|
|
|
|
if (expiration != null)
|
|
|
|