How to not have a Welcome page ?

408 views
Skip to first unread message

Fabrice G.

unread,
Dec 20, 2019, 8:01:56 AM12/20/19
to Keycloak User
Hi,

Is there a way to totally deactivate the keycloak server welcome page ?

We don't need a welcome page at all for our deployment.

Regards,

Stian Thorgersen

unread,
Dec 20, 2019, 8:18:19 AM12/20/19
to Fabrice G., Keycloak User
Simplest would just be to provide an empty template, or perhaps just one with your company logo or something.

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/da09ecb7-8667-4e90-a2e6-3563570118ba%40googlegroups.com.

Stan Silvert

unread,
Dec 20, 2019, 8:45:01 AM12/20/19
to keyclo...@googlegroups.com
On 12/20/2019 8:18 AM, Stian Thorgersen wrote:
Simplest would just be to provide an empty template, or perhaps just one with your company logo or something.
Or intercept the request at the firewall and do what you want.

On Fri, 20 Dec 2019 at 14:02, Fabrice G. <fabge...@gmail.com> wrote:
Hi,

Is there a way to totally deactivate the keycloak server welcome page ?

We don't need a welcome page at all for our deployment.

Regards,
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/da09ecb7-8667-4e90-a2e6-3563570118ba%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.

Thomas Darimont

unread,
Dec 20, 2019, 8:53:51 AM12/20/19
to Stan Silvert, Keycloak User
Hello,

another option to configure Keycloak's undertow subsystem via jboss-cli to white list certain paths and send a redirect for all other paths

# Explicit white-list of allowed locations
# /auth/admin -> Admin API
# /auth/resources -> Theme Resources (css/img/js)
# /auth/js -> Keycloak.js resource
# /auth/realms/YOUR_REALM_HERE -> Your realm
# /auth/realms/master -> Master realm for Keycloak administration
/subsystem=undertow/configuration=filter/expression-filter=redirectIfNotWhitelisted:add( \
  expression="not (regex('/auth/(admin|resources|js)/.*') or regex('/auth/realms/(master|YOUR_REALM_HERE)/?.*')) -> redirect('https://www.example.com')" \
)
/subsystem=undertow/server=default-server/host=default-host/filter-ref=redirectIfNotWhitelisted:add()

Cheers,
Thomas

Message has been deleted
Message has been deleted

Ernedin Zajko

unread,
Dec 24, 2019, 10:31:47 AM12/24/19
to Fabrice G., Keycloak User
Hi Fabrice,

you can edit keycloak/welcome-content/index.html
Something like this:
-->
<html>
<head>
<meta http-equiv="refresh" content="0; url=/auth/" />
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript">
window.location.href = "/auth/realms/master/account/"
</script>
</head>
<body>
If you are not redirected automatically, follow this <a
href='/auth/realms/master/account/'>link</a>.
</body>
</html>
<--


regards,
--eZ
signature.asc
Reply all
Reply to author
Forward
0 new messages