Thanks for helping.
I modified the traefik labels as you mentioned, but effectively it's not the main issue.
The traefik container labels are now :
labels:
traefik.enable: true
traefik.http.routers.api.entrypoints: web-secure
traefik.http.routers.api.rule: Host("proxy.domain.tld")
traefik.http.routers.api.tls: true
traefik.http.routers.api.tls.certresolver: cloudflare
traefik.http.routers.api.service: api@internal
traefik.http.services.api.loadbalancer.healthcheck.path: /ping
traefik.http.routers.api.middlewares: keycloak@file
I have checked the logs but no errors appears.
Here are the logs of the Keycloak instance :
09:44:21,489 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=bCtO18Mpnsg
09:44:21,524 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=tJcmG8fnYlg
09:44:21,550 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=Q4WMXLivAME
09:44:21,580 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=N5f0gkxKVOs
09:44:21,605 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=su9CDmJYENU
09:44:21,628 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=F8CjgnNjAno
09:44:21,656 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=NsgK9pnSzQk
09:44:21,682 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=3bqfQFrbj3E
09:44:21,707 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=C_vceHfQOzk
09:44:21,731 INFO [org.keycloak.events] (default task-187) type=LOGIN, realmId=Internal Network, clientId=traefik-auth, userId=65cdf049-bf3d-459e-9be9-58d365024781, ipAddress=10.1.0.3, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=https://auth.domain.tld/_oauth, consent=no_consent_required, code_id=6f35f292-a396-4354-8c69-d1d2cb839925, response_mode=query, username=benjamin, authSessionParentId=6f35f292-a396-4354-8c69-d1d2cb839925, authSessionTabId=ZVFaq1NmWx8
And for the traefik-auth container, here are the logs :
time="2019-10-29T09:44:13Z" level=debug msg="Handling request" Headers="map[X-Forwarded-Host:[auth.domain.tld] Sec-Fetch-Site:[none] X-Forwarded-For:[192.168.32.1] Dnt:[1] Accept-Encoding:[gzip, deflate, br] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Upgrade-Insecure-Requests:[1] X-Forwarded-Proto:[https] X-Forwarded-Server:[1f4d3f943287] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] X-Forwarded-Port:[443] X-Real-Ip:[192.168.32.1] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Sec-Fetch-Mode:[navigate]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:13Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:13Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:13Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[X-Forwarded-Server:[1f4d3f943287] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Cache-Control:[max-age=0] X-Forwarded-Port:[443] Sec-Fetch-User:[?1] X-Forwarded-For:[192.168.32.1] X-Forwarded-Host:[auth.domain.tld] Upgrade-Insecure-Requests:[1] X-Forwarded-Proto:[https] X-Real-Ip:[192.168.32.1] Accept-Encoding:[gzip, deflate, br] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Sec-Fetch-Mode:[navigate] Sec-Fetch-Site:[same-site] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Cookie:[_forward_auth_csrf=75596501f9afe65d1b30060c6e49db4a] Dnt:[1]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Accept-Encoding:[gzip, deflate, br] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Sec-Fetch-User:[?1] X-Forwarded-Server:[1f4d3f943287] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Dnt:[1] Sec-Fetch-Mode:[navigate] Cookie:[_forward_auth_csrf=2f0abafce814a47ca9ab5a25fd365b7a] Cache-Control:[max-age=0] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Sec-Fetch-Site:[same-site] Upgrade-Insecure-Requests:[1] X-Forwarded-Host:[auth.domain.tld] X-Forwarded-Port:[443] X-Real-Ip:[192.168.32.1] X-Forwarded-For:[192.168.32.1] X-Forwarded-Proto:[https] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Cache-Control:[max-age=0] X-Forwarded-Server:[1f4d3f943287] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] X-Forwarded-Host:[auth.domain.tld] Sec-Fetch-User:[?1] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Cookie:[_forward_auth_csrf=b8169ff5b8e06089009a9deb4b539fc6] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Sec-Fetch-Mode:[navigate] Sec-Fetch-Site:[same-site] Upgrade-Insecure-Requests:[1] X-Forwarded-For:[192.168.32.1] X-Real-Ip:[192.168.32.1] X-Forwarded-Port:[443] Dnt:[1] X-Forwarded-Proto:[https] Accept-Encoding:[gzip, deflate, br]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Sec-Fetch-User:[?1] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] X-Forwarded-Proto:[https] X-Forwarded-Server:[1f4d3f943287] Accept-Encoding:[gzip, deflate, br] Cache-Control:[max-age=0] Sec-Fetch-Site:[same-site] X-Forwarded-For:[192.168.32.1] X-Forwarded-Host:[auth.domain.tld] X-Real-Ip:[192.168.32.1] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Dnt:[1] Sec-Fetch-Mode:[navigate] Upgrade-Insecure-Requests:[1] X-Forwarded-Port:[443] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Cookie:[_forward_auth_csrf=4df4c555e87b8b0866e2526d234e3b70]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Accept-Encoding:[gzip, deflate, br] Cache-Control:[max-age=0] Cookie:[_forward_auth_csrf=02b53e1dd999410c2acb20433f3298c1] X-Real-Ip:[192.168.32.1] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Sec-Fetch-Mode:[navigate] Sec-Fetch-Site:[same-site] X-Forwarded-For:[192.168.32.1] Sec-Fetch-User:[?1] X-Forwarded-Port:[443] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Dnt:[1] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Upgrade-Insecure-Requests:[1] X-Forwarded-Host:[auth.domain.tld] X-Forwarded-Proto:[https] X-Forwarded-Server:[1f4d3f943287]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Cookie:[_forward_auth_csrf=0c2706fb99677e5dd69078d486d6fa5a] Dnt:[1] X-Forwarded-Proto:[https] X-Forwarded-Server:[1f4d3f943287] X-Real-Ip:[192.168.32.1] Accept-Encoding:[gzip, deflate, br] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Sec-Fetch-User:[?1] X-Forwarded-For:[192.168.32.1] X-Forwarded-Host:[auth.domain.tld] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] X-Forwarded-Port:[443] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Cache-Control:[max-age=0] Sec-Fetch-Mode:[navigate] Sec-Fetch-Site:[same-site] Upgrade-Insecure-Requests:[1]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] X-Forwarded-For:[192.168.32.1] Upgrade-Insecure-Requests:[1] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Accept-Encoding:[gzip, deflate, br] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Sec-Fetch-Mode:[navigate] X-Forwarded-Host:[auth.domain.tld] X-Forwarded-Port:[443] X-Forwarded-Server:[1f4d3f943287] Sec-Fetch-User:[?1] X-Forwarded-Proto:[https] X-Real-Ip:[192.168.32.1] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Cache-Control:[max-age=0] Cookie:[_forward_auth_csrf=b14f5d93e564e7d9ca5aebdb03637794] Dnt:[1] Sec-Fetch-Site:[same-site]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[X-Forwarded-Port:[443] X-Forwarded-Server:[1f4d3f943287] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Upgrade-Insecure-Requests:[1] Sec-Fetch-Mode:[navigate] X-Real-Ip:[192.168.32.1] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Dnt:[1] X-Forwarded-For:[192.168.32.1] X-Forwarded-Proto:[https] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Accept-Encoding:[gzip, deflate, br] Sec-Fetch-User:[?1] X-Forwarded-Host:[auth.domain.tld] Cache-Control:[max-age=0] Cookie:[_forward_auth_csrf=a47ef0643266f30b192397c95f040d3c] Sec-Fetch-Site:[same-site]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Cache-Control:[max-age=0] Sec-Fetch-Mode:[navigate] Sec-Fetch-Site:[same-site] X-Forwarded-Port:[443] X-Forwarded-Proto:[https] Accept-Encoding:[gzip, deflate, br] Upgrade-Insecure-Requests:[1] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Cookie:[_forward_auth_csrf=847108ccdb9a738e5ed360c6b442e082] X-Real-Ip:[192.168.32.1] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3] Dnt:[1] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Sec-Fetch-User:[?1] X-Forwarded-For:[192.168.32.1] X-Forwarded-Host:[auth.domain.tld] X-Forwarded-Server:[1f4d3f943287]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Handling request" Headers="map[Accept-Encoding:[gzip, deflate, br] Cookie:[_forward_auth_csrf=e2b2da4c95ace485308dba4d04cee3df] Sec-Fetch-Site:[same-site] X-Forwarded-Host:[auth.domain.tld] X-Forwarded-Port:[443] X-Real-Ip:[192.168.32.1] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36] Dnt:[1] Referer:[https://sso.domain.tld/auth/realms/internal-network/protocol/openid-connect/auth?client_id=traefik-auth&redirect_uri=https%3A%2F%2Fauth.domain.tld%2F_oauth&response_type=code&scope=openid+profile+email&state=75596501f9afe65d1b30060c6e49db4a%3Ahttps%3A%2F%2Fauth.domain.tld] Sec-Fetch-User:[?1] Upgrade-Insecure-Requests:[1] X-Forwarded-For:[192.168.32.1] X-Forwarded-Proto:[https] Accept-Language:[fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,pt;q=0.5,tr;q=0.4,de;q=0.3,da;q=0.2,la;q=0.1] Cache-Control:[max-age=0] Sec-Fetch-Mode:[navigate] X-Forwarded-Server:[1f4d3f943287] Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3]]" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="Set CSRF cookie and redirecting to oidc login" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="uri.Path was %s" SourceIP=192.168.32.1
time="2019-10-29T09:44:21Z" level=debug msg="fw.Path was %s/_oauth" SourceIP=192.168.32.1
As you can see, no error mentioned... Don't know what's wrong here
EDIT : here are more informations about my setup
- Keycloak instance is running in a Kubernetes Cluster (on the same network), it's the Helm Chart v6.0.0 (with env variable PROXY_ADDRESS_FORWARDING="true") - https://hub.helm.sh/charts/codecentric/keycloak
- Traefik and Traefik-auth containers are running on server 10.1.0.3
- 192.168.32.1 is the docker bridge