Trying to use the library for authentication (Auth flow with PKCE) with passport in a docker-compose setup. The identity provider in this case is reachable from the NodeJS server via a docker-internal host name, such as http://keycloak:8080, whereas the browser reaches the identity provider via http://localhost:8080. The issuer discovery is successful at http://keycloak:8080, but when a user tries to login in the browser he is redirected to the same URL, which cannot be resolved by the browser. It would hence be necessary to use a different redirect URL for the user. I could not find a way to do this in the documentation, is it possible?
Trying to use the library for authentication (Auth flow with PKCE) with passport in a docker-compose setup. The identity provider in this case is reachable from the NodeJS server via a docker-internal host name, such as http://keycloak:8080, whereas the browser reaches the identity provider via http://localhost:8080. The issuer discovery is successful at http://keycloak:8080, but when a user tries to login in the browser he is redirected to the same URL, which cannot be resolved by the browser. It would hence be necessary to use a different redirect URL for the user. I could not find a way to do this in the documentation, is it possible?