You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using kafka-ui with docker-compose and I want to test oauth2 locally. The authentication server is running in my host machine but NOT inside a container.
Authentication server for oauth2: localhost:9090
kafka-ui: docker-compose with exposes the port 8080
I can initiate the oauth2 flow properly but when kafka-ui tries to hit the endpoint Request to POST http://localhost:9090/openid/token/ I get "finishConnect(..) failed: Connection refused which makes sense because it is trying to hit itself rather than going out the container. Do you have any ideas how can I bypass this issue? I tried to use extra_hosts: - host.docker.internal:host-gateway but it did not work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using
kafka-ui
withdocker-compose
and I want to testoauth2
locally. The authentication server is running in my host machine but NOT inside a container.Authentication server for oauth2:
localhost:9090
kafka-ui: docker-compose with exposes the port
8080
I can initiate the
oauth2
flow properly but whenkafka-ui
tries to hit the endpointRequest to POST http://localhost:9090/openid/token/
I get"finishConnect(..) failed: Connection refused
which makes sense because it is trying to hit itself rather than going out the container. Do you have any ideas how can I bypass this issue? I tried to useextra_hosts: - host.docker.internal:host-gateway
but it did not work.Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions