Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keycloak and Docker - Cannot set two types of URLs

I use standalone version of keycloak in docker-based application.

Since Keycloak 1.9.2 there is an "auth-server-url-for-backend-requests" attribute removed from keycloak properties.

This field was by me to indicate the internal ip address of auth server (inside a dock). The external one (auth-server-url) is used for redirection purpose.

My question is: how to replace former auth-server-url-for-backend-request to solve a problem of having different network addresses inside docker and outside of it.

like image 433
Michal Borek Avatar asked May 12 '16 19:05

Michal Borek


People also ask

What is a docker programming?

Docker is an open source platform that enables developers to build, deploy, run, update and manage containers—standardized, executable components that combine application source code with the operating system (OS) libraries and dependencies required to run that code in any environment.


1 Answers

According to the following links, it appears you can use the same DNS for external requests as you would for internal. See these:

keycloak issue

http://keycloak.github.io/docs/userguide/keycloak-server/html_single/index.html#d4e4114

like image 82
BatteryAcid Avatar answered Sep 22 '22 02:09

BatteryAcid