I do have a Spring Boot Application which serves a REST API. Authentication and authorisation is handled by KeyCloak. springdoc-openapi-ui
is used to document the API and configured to allow a user to authenticate against Keycloak ("Authorize" Button is visible). Clicking the button results in Keycloak complaining about a wrong redirectUri "http://backend:8080/...". The Application is runnning within a docker-compose setup.
Swagger-Ui is reading from /v3/api-docs/swagger-config
and the result contains the URI from above although the URL in the browser ist like "https://dev.my.app/swagger-ui/index.html".
I`d like to see Swagger-UI using the current location as redirectUri and not the redirectUri from the backend (which is just wrong in my case). Any idea on how I could customize springdoc-openapi-ui?