[keycloak-user] web-context admin console

Dennis de Vaal | Rovecom ddevaal at rovecom.nl
Wed Oct 4 05:49:49 EDT 2017


When I curl -I http://test.domain.com/auth/admin I’m being redirected to http://test.domain.com/admin/master/console/ even though the web-context is set to /auth. Why is this?

 % curl -I http://test.domain.com/auth/admin
HTTP/1.1 302 Found
Content-Length: 0
Date: Wed, 04 Oct 2017 09:32:17 GMT
Location: http://test.domain.com/admin/master/console/
Server: WildFly/10
X-Powered-By: Undertow/1
Content-Type: text/plain; charset=utf-8

I want to serve everything under /auth including the admin console. When I go to http://test.domain.com/auth/admin/master/console I’m getting 404’s, network errors etc.

(index):12 GET http://test.domain.com/resources/2.5.5.final/admin/keycloak/lib/patternfly/css/patternfly.css net::ERR_ABORTED
(index):13 GET http://test.domain.com/resources/2.5.5.final/admin/keycloak/lib/select2-3.4.1/select2.css net::ERR_ABORTED

This path works though: http://test.domain.com/auth/resources/2.5.5.final/admin/keycloak/lib/select2-3.4.1/select2.css%20net::ERR_ABORTED

Keycloak is behind a reverse proxy (traefik). We are using the option: PathPrefixStrip which basically removes /auth from every request. Is there a way to set the correct relative url in keycloak?

Proxy forwarding is enabled in standalone.xml

Regards,

Dennis de Vaal


-----------------------------
Rovecom

Dennis de Vaal | Rovecom
webontwikkelaar

Elbe 2, 7908 HB Hoogeveen
Postbus 2126, 7900 BC Hoogeveen
0528 22 35 35


Voortdurend bezig met innoveren om beweging te stimuleren en groei te realiseren. Wij zijn Rovecom.
Disclaimer: http://www.rovecom.nl/maildisclaimer. Wanneer de link niet werkt, plak de link dan in uw internet browser.


-----------------------------




More information about the keycloak-user mailing list