DEV Community

Cover image for How to customize the keycloak email
Ismael Garcia
Ismael Garcia

Posted on

1

How to customize the keycloak email

Svg Ilustration from pixeltrue
figma link for the header image

We are currently working with Keycloak as auth provider, one of the questions that is not that trivial to get the information about how to customize the emails that Keycloak.

  1. How can I show the company logo in the email? > The best solution to add images is to host it somewhere and just use the link for the image.
  • What other solutions that I try:
    • Add a base 64 images in to the email, but this is not a perfect solution.
    • Create a resources folder and access the image from the email by ${url.resourcePath}/img/myImage.jpg but this is not working.

2-. In the reset password email get the user first name or username in the email.

In the email you have access to the user ${msg("greetingMessage", user.firstName, user.lastName)?no_esc}

  • Remember all this is in the custom theme that you create you can have a look at this Theme-sample
view raw socials.md hosted with ❤ by GitHub

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay