فهرست منبع

Add a method clearCredentials() to OwnCloudClient that is used to detect authentication expected by the server instead of setBasicCredentials('', '')

masensio 11 سال پیش
والد
کامیت
2869aa0ac4
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      owncloud-android-library
  2. 1 1
      src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java

+ 1 - 1
owncloud-android-library

@@ -1 +1 @@
-Subproject commit 1ef3a0176cc870d3cb26a77652b7ae9fd79584ce
+Subproject commit 0cf283526820c0f056f8f5e6c1c1fcc09bb55262

+ 1 - 1
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