From 2869aa0ac4cde2491449ea9a8e0315acc78524b5 Mon Sep 17 00:00:00 2001 From: masensio Date: Fri, 6 Jun 2014 12:38:04 +0200 Subject: [PATCH] Add a method clearCredentials() to OwnCloudClient that is used to detect authentication expected by the server instead of setBasicCredentials('', '') --- owncloud-android-library | 2 +- .../android/operations/DetectAuthenticationMethodOperation.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.11.0