wallabag / wallabag/android-app

Connection Test fails with Basic Auth with 2.0.1

Open
#632 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
587
Forks
276
PR merge metrics
No merged PRs in 30d

Description

I am using Basic Auth to protect my wallabag 2.2.3 installation. This was and is working fine with the 1.12.2 app. However with 2.0.1 the connection test is failing.

I entered the proper connection settings and Autofill is working. The client registers, gets a secret (that matches with what the webclient shows). Still, after navigating to the main screen, the proposed connection test fails.

It says: **API access test failed**
Unknown error:
AuthorizationException: HTTP response: 401 Unauthorized

On the server, I see this log:

```
"GET / HTTP/1.1" 302 4616 "-" "okhttp/3.8.1"
"GET /login HTTP/1.1" 200 1546 "-" "okhttp/3.8.1"
"POST /login_check HTTP/1.1" 302 832 "-" "okhttp/3.8.1"
"GET / HTTP/1.1" 200 6837 "-" "okhttp/3.8.1"
"GET / HTTP/1.1" 200 6837 "-" "okhttp/3.8.1"
[auth_basic:error] [pid 4526] [client 189.4.72.29:9498] AH01614: client used wrong authentication scheme: /api/version.json
"GET /api/version.json HTTP/1.1" 401 4543 "-" "okhttp/3.8.1"
"POST /oauth/v2/token HTTP/1.1" 401 684 "-" "okhttp/3.8.1"
```

Looks like one of those requests is made without basic auth. If that is the problem, it should be an easy fix.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.