wallabag / wallabag/android-app

Can't connect to Wallabag instance that has auth on /, but exposes ^/api/ and ^/oauth/

Open
#1,479 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
587
Forks
276
PR merge metrics
No merged PRs in 30d

Description

Hey all,

I use Authentik + Traefik to protect my internal services, typically willing to expose only API routes needed for mobile apps, browser extensions, etc. For Wallabag, that means that any traffic it receives will be redirected to my authentication provider before granting access _unless_ the URL begins with `/api/` or `/oauth/`.

With Authentik, this is done by setting unauthenticated paths in the proxy provider:

Image

You can see that this works successfully for my Firefox Wallabagger add-on:

Image

However, when I try to configure the mobile app the same way I get an error:

Image Image

In my Traefik logs I can see that the app is trying to hit `/` first:

```
traefik-1 | 2025-09-04T14:51:32Z DBG github.com/traefik/traefik/v3/pkg/middlewares/auth/forward.go:223 > Remote error http://authentik-server:9000/outpost.goauthentik.io/auth/traefik. StatusCode: 302 middlewareName=authentik-authorization-passthru@docker middlewareType=ForwardAuth
traefik-1 | 172.58.120.38 - - [04/Sep/2025:14:51:32 +0000] "GET / HTTP/2.0" 302 583 "-" "-" 9862 "wallabag@docker" "-" 2ms
traefik-1 | 2025-09-04T14:51:32Z DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:213 > Service selected by WRR: http://192.168.16.13:9000
```

But this should not be necessary for OAuth login!

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.