Describe the bug
traefik setup.
services:
tinyauth:
image: ghcr.io/steveiliop56/tinyauth:v3
environment:
- APP_URL=https://auth0.example.com
- GENERIC_NAME=MyGenericName #default:. generic
deploy:
labels:
# defining the labels for other services:
- "traefik.http.middlewares.tinyauth-auth0-secure.forwardauth.address=http://tinyauth:3000/api/auth/traefik"
- "traefik.http.middlewares.tinyauth-auth0-secure.forwardauth.authResponseHeaders=remote-user, authorization"
- "traefik.http.middlewares.tinyauth-auth0-secure.forwardauth.trustForwardHeader=true"
i can call the tinyauth just fine and authenticate with my OIDC endpoint (OpenText Advanced Authetication).
now i add the middleware to another service
services:
homer:
deploy:
labels:
- "tinyauth.domain=swarm0.example.com"
if i call now swarm0.example.com i get presented with the tinyauth webui -> press the now called "MyGenericName" button and a redirect is shown in the url bar which has a callback to auth0.example.com... callback...generic in it that is not working (should be MyGenericName)
the redirect to MyGenericName works with the tinyauth WebUI but not with the other service that uses a middleware via label.
if i comment GENERIC_NAME (and adapt the OIDC provider setting to generic) then both work
Describe the bug
traefik setup.
i can call the tinyauth just fine and authenticate with my OIDC endpoint (OpenText Advanced Authetication).
now i add the middleware to another service
if i call now swarm0.example.com i get presented with the tinyauth webui -> press the now called "MyGenericName" button and a redirect is shown in the url bar which has a callback to auth0.example.com... callback...generic in it that is not working (should be MyGenericName)
the redirect to MyGenericName works with the tinyauth WebUI but not with the other service that uses a middleware via label.
if i comment
GENERIC_NAME(and adapt the OIDC provider setting to generic) then both work