X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/2dc5cc57f12cf2832f6b19ee52f87e9f1f313eaa..db1ea015619a1cc5a3886ea90dc20f910fc6dd9e:/src/com/owncloud/android/syncadapter/FileSyncAdapter.java diff --git a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java index 0ae6d775..49f88f97 100644 --- a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java +++ b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java @@ -225,7 +225,8 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { } else { if (result.getCode() == RemoteOperationResult.ResultCode.UNAUTHORIZED || - (result.isTemporalRedirection() && result.isIdPRedirection() && + // (result.isTemporalRedirection() && result.isIdPRedirection() && + ( result.isIdPRedirection() && AccountAuthenticator.AUTH_TOKEN_TYPE_SAML_WEB_SSO_SESSION_COOKIE.equals(getClient().getAuthTokenType()))) { mSyncResult.stats.numAuthExceptions++; @@ -309,7 +310,8 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { notification.flags |= Notification.FLAG_AUTO_CANCEL; boolean needsToUpdateCredentials = (mLastFailedResult != null && ( mLastFailedResult.getCode() == ResultCode.UNAUTHORIZED || - (mLastFailedResult.isTemporalRedirection() && mLastFailedResult.isIdPRedirection() && + // (mLastFailedResult.isTemporalRedirection() && mLastFailedResult.isIdPRedirection() && + ( mLastFailedResult.isIdPRedirection() && AccountAuthenticator.AUTH_TOKEN_TYPE_SAML_WEB_SSO_SESSION_COOKIE.equals(getClient().getAuthTokenType())) ) );