anywayanyday
anywayanyday

Reputation: 81

Modify error pages templates for Keycloak theme

Is there any possibility to change the way how Keycloak displays pages for bad responses(404, 500)? Maybe redirection or changing template for these pages? Simple view of 404

Upvotes: 8

Views: 4170

Answers (3)

Jesper Pannerup
Jesper Pannerup

Reputation: 141

Others that might come here looking for the answer, Keycloak does not support Statuscodes for the error page, but by using custom templating for login, you can detect it yourself in the frontend. I found my solution here

Upvotes: 0

Dilbert
Dilbert

Reputation: 73

See this link, https://lists.jboss.org/pipermail/keycloak-user/2018-June/014439.html

"... As long as the URL of the error page includes the realm it will use the login theme for that realm. Otherwise it will fallback to the login theme of the master realm. ..."

Upvotes: 1

Philipp
Philipp

Reputation: 510

Sure, you can use custom themes and templates for all kind of interfaces (Web UI, e-mails, error pages etc). You can also extend existing themes and partially override it. Please refer to the themes development guide here.

Upvotes: 0

Related Questions