We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bc5d1b + d17af1d commit 58b0592Copy full SHA for 58b0592
src/main/java/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java
@@ -98,11 +98,8 @@ protected RemoteOperationResult run(OwnCloudClient client) {
98
// analyze response
99
if (result.getHttpCode() == HttpStatus.SC_UNAUTHORIZED) {
100
String authRequest = ((result.getAuthenticateHeader()).trim()).toLowerCase();
101
- if (authRequest.startsWith("basic")) {
+ if (authRequest.startsWith("basic") || authRequest.startsWith("bearer")) {
102
authMethod = AuthenticationMethod.BASIC_HTTP_AUTH;
103
-
104
- } else if (authRequest.startsWith("bearer")) {
105
- authMethod = AuthenticationMethod.BEARER_TOKEN;
106
}
107
// else - fall back to UNKNOWN
108
0 commit comments