How to set up OIDC connection to Keycloak in Quarkus on Kubernetes
Finally made it work. Caused by incorrect auth-server-url which is not clear at all from the log messages.
quarkus.oidc.client-id: my-appquarkus.oidc.enabled: truequarkus.oidc.connection-delay: 6Mquarkus.oidc.connection-timeout: 30Squarkus.oidc.tenant-id: testTenant-01quarkus.oidc.auth-server-url: ${keycloak.url}/auth/realms/${quarkus.oidc.tenant-id}
The URL format is emphasized in Quarkus doc: Note if you work with Keycloak OIDC server, make sure the base URL is in the following format: https://host:port/auth/realms/{realm} where {realm} has to be replaced by the name of the Keycloak realm