authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Applications URL of forwardauth provider now with X-authentik-auth-callback

Open ffritsche opened this issue 1 year ago • 1 comments

Describe the bug All application links in the user dashboard that uses a forward auth(single App) provider now looks like this. https://app.domain.tld/?X-authentik-auth-callback=true

I use traefik as reverse proxy with the middleware from the documentation (https://docs.goauthentik.io/docs/providers/proxy/server_traefik)

Most applications run in errors with this GET parameter.

To Reproduce Steps to reproduce the behavior:

  1. Create a forward auth(single app) provider
  2. Create a app with this provider
  3. Go to the user dashboard

Expected behavior Use the provides "External host" url without this parameter

Version and Deployment (please complete the following information): Docker-Compose image: ghcr.io/goauthentik/dev-server:gh-version-2024.8 (https://github.com/goauthentik/authentik/commit/fadeaef4c65f9226325adcce1121fb7e31a237c3)

ffritsche avatar Sep 05 '24 17:09 ffritsche

The same issue after update to 2024.8. Not only traefik, but clear application proxy too (I use for Swagger-UI). Workaround is to fill optional (usually empty) field Launch URL with correct Application URL.

EAnsy avatar Sep 06 '24 01:09 EAnsy

Is this in release 2024.8.1? or a future patch? I updated, but I'm still seeing the wrong proxy provider url

tscibilia avatar Sep 08 '24 14:09 tscibilia

Is this in release 2024.8.1? or a future patch? I updated, but I'm still seeing the wrong proxy provider url

it'll be included in the next gh-version-2024.8 build

elriti avatar Sep 08 '24 19:09 elriti

Is there a workaround right now? (Yes, my bad), but this broke production for me.

Edit, Workaround for Caddy users:

example.com {
    uri / query -X-authentik-auth-callback
    rewrite {uri}
}

levi-jcbs avatar Sep 14 '24 18:09 levi-jcbs

Another workaround is to override the Launch URL in Applications > Edit > UI Settings.

levi-jcbs avatar Sep 14 '24 23:09 levi-jcbs