From: masensio Date: Fri, 6 Jun 2014 10:38:04 +0000 (+0200) Subject: Add a method clearCredentials() to OwnCloudClient that is used to detect authenticati... X-Git-Tag: oc-android-1.7.0_signed~264^2~30 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/2869aa0ac4cde2491449ea9a8e0315acc78524b5?ds=inline Add a method clearCredentials() to OwnCloudClient that is used to detect authentication expected by the server instead of setBasicCredentials('', '') --- diff --git a/owncloud-android-library b/owncloud-android-library index 1ef3a017..0cf28352 160000 --- a/owncloud-android-library +++ b/owncloud-android-library @@ -1 +1 @@ -Subproject commit 1ef3a0176cc870d3cb26a77652b7ae9fd79584ce +Subproject commit 0cf283526820c0f056f8f5e6c1c1fcc09bb55262 diff --git a/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java b/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java index b817e724..e8c0fd13 100644 --- a/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java +++ b/src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java @@ -94,7 +94,7 @@ public class DetectAuthenticationMethodOperation extends RemoteOperation { RemoteOperation operation = new ExistenceCheckRemoteOperation("", mContext, false); client.setWebdavUri(Uri.parse(mWebDavUrl)); - client.setBasicCredentials("", ""); + client.clearCredentials(); client.setFollowRedirects(false); // try to access the root folder, following redirections but not SAML SSO redirections