Open GuilhemUPSILON opened 2 months ago
Hello. I am facing the same issue.
I've done some code digging and it seems it's the urljoin that causes the relative path to be stripped. What I've done is suffixed the server_url
with /
. Here is an example:
$ python3
>>> from urllib.parse import urljoin
>>> urljoin("https://my.keycloak.host/auth", "api/token")
'https://my.keycloak.host/api/token'
>>> urljoin("https://my.keycloak.host/auth/", "api/token")
'https://my.keycloak.host/auth/api/token'
without a /
present at the end of the url the relative path is stripped. Adding /
fixes that issue.
Architecture : I have a keycloak configured behind a reverse proxy (traefik) to the path /auth
requirements.txt
I'm trying to follow the docs: https://python-keycloak.readthedocs.io/en/latest/modules/openid_client.html#get-certs
I got this error:
Steps to reproduce:
compose.yaml
keycloak.env