How exactly the error page looks like and how the browser URL looks
like? Is it something in the server.log when it's displayed?
Marek
On 07/06/16 15:31, Haim Vana wrote:
Hi Marek,
The exception (HTTP error 404) is on KeyCloak side (missing tenant), I
have looked into the themes
<
http://keycloak.github.io/docs/userguide/keycloak-server/html_single/inde...
chapter and the themes examples
<
https://github.com/keycloak/keycloak/tree/master/examples/themes> but
I didn't find a way to customize the missing tenant page (instead of
the 404 that is thrown).
Is it possible ?
We can’t do it in the web.xml since we want it to only for the missing
tenant scenario.
Thanks,
Haim.
*From:*Marek Posolda [mailto:mposolda@redhat.com]
*Sent:* Tuesday, June 07, 2016 10:21 AM
*To:* Haim Vana <haimv(a)perfectomobile.com>; keycloak-user(a)lists.jboss.org
*Subject:* Re: [keycloak-user] Custom page for not found realm (tenant)
Is the error thrown on application side or on keycloak side? If it's
on application side and you have servlet application, you can
configure the custom error page in web.xml . For example see
https://www.onehippo.org/library/concepts/error-pages-and-error-handling/...
<
https://emea01.safelinks.protection.outlook.com/?url=https%3a%2f%2fwww.on...
.
If it's on keycloak side, you can change look&feel of keycloak error
pages with usage of custom theme. See the docs and our theme examples
for more details.
Marek
On 07/06/16 09:10, Haim Vana wrote:
Hi,
We are using KeyCloak with multi-tenancy, each realm represents a
tenant (customer).
Sometimes due to setup issue or typo in the realm name we are
getting 404 page, is there a custom page or a way to customize a
page for missing realm scenario ?
For example something like – Realm <name> doesn't exist…
Thanks,
Haim.
The information contained in this message is proprietary to the
sender, protected from disclosure, and may be privileged. The
information is intended to be conveyed only to the designated
recipient(s) of the message. If the reader of this message is not
the intended recipient, you are hereby notified that any
dissemination, use, distribution or copying of this communication
is strictly prohibited and may be unlawful. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer. Thank
you.
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org <mailto:keycloak-user@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user
<
https://emea01.safelinks.protection.outlook.com/?url=https%3a%2f%2flists....
The information contained in this message is proprietary to the
sender, protected from disclosure, and may be privileged. The
information is intended to be conveyed only to the designated
recipient(s) of the message. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination,
use, distribution or copying of this communication is strictly
prohibited and may be unlawful. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank you.