Relative Content

Tag Archive for dockernext.jskeycloaknext-auth

ECONNREFUSED – NextJs Keycloak Auth in Docker not working

I have a NextJs Application and want to integrate Authentication with Keycloak. The Application runs in Docker Containers. I created an API Route that should handle the Login with Keycloak. The page itself works. The Login Button from Keycloak is displayed but when i click on this Button an Error is displayed that the connection to the Keycloak URL was refused. I cant figure out what the Problem is.