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
💡 One last tip before you go

Tired of spending so much on your side projects? 😒

We have created a membership program that helps cap your costs so you can build and experiment for less. And we currently have early-bird pricing which makes it an even better value! 🐥

Just one of many great perks of being part of the network ❤️

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay