Since requests are proxied by Apache httpd, the intermediary web server could provide
redirect behavior with configuration like:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^/.*$
http://redirect-destination-host.example.com/path/to/account/client
If there is no intermediary web server to leverage, Keycloak itself can also satisfy this
use case.
To override the content rendered in response to "GET /" and "GET
/auth/" requests, the following files can be modified:
- welcome-content/index.html
- themes/keycloak/welcome/index.ftl
Default redirect behavior can be obtained with static HTML like the following:
<head>
<meta http-equiv="refresh" content="0;
url=http://redirect-destination-host.example.com/path/to/account/client&q... />
<meta name="robots" content="noindex, nofollow">
</head>
Hope that helps,
-John Bartko
________________________________
From: keycloak-user-bounces(a)lists.jboss.org <keycloak-user-bounces(a)lists.jboss.org>
on behalf of mj <lists(a)merit.unu.edu>
Sent: Friday, August 18, 2017 5:40:16 AM
To: keycloak-user
Subject: [keycloak-user] default redirect url
Hi,
Our keycloak install is on
https://keycloak.company.com<https://keycloak.company.com>, proxied by
apache to localhost:8080
Some of our end-users remember that address, and browse directly to it.
So they end-up in the "welcome to keycloak" page, with links to login
the Admin Console etc.
But is there a way to make the keycloak "account" client become the
default page, so that the base url would be redirected to
https://keycloak.company.com/auth/realms/our_realm/account<https://key...
Since apache proxies the base keycloak url (localhost:8080), I guess
this would have to be done by keycloak itself.
Is this possible?
MJ
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user<https://lists.j...