mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Merge pull request #1032 from nextcloud/nc12auth
HOTFIX: Ignore oauth for now and use always basic auth
This commit is contained in:
commit
58b0592d44
1 changed files with 1 additions and 4 deletions
|
@ -98,11 +98,8 @@ public class DetectAuthenticationMethodOperation extends RemoteOperation {
|
|||
// analyze response
|
||||
if (result.getHttpCode() == HttpStatus.SC_UNAUTHORIZED) {
|
||||
String authRequest = ((result.getAuthenticateHeader()).trim()).toLowerCase();
|
||||
if (authRequest.startsWith("basic")) {
|
||||
if (authRequest.startsWith("basic") || authRequest.startsWith("bearer")) {
|
||||
authMethod = AuthenticationMethod.BASIC_HTTP_AUTH;
|
||||
|
||||
} else if (authRequest.startsWith("bearer")) {
|
||||
authMethod = AuthenticationMethod.BEARER_TOKEN;
|
||||
}
|
||||
// else - fall back to UNKNOWN
|
||||
|
||||
|
|
Loading…
Reference in a new issue