Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Keycloak 22.0.1 version folder missing #20

Open
abhi8054 opened this issue Aug 28, 2023 · 6 comments
Open

Using Keycloak 22.0.1 version folder missing #20

abhi8054 opened this issue Aug 28, 2023 · 6 comments

Comments

@abhi8054
Copy link

abhi8054 commented Aug 28, 2023

using quay.io/keycloak/keycloak docker image

But how do I need to perform these steps :

html/code-email.ftl is a html email template. Copy to themes/base/email/html/

copy text/code-email.ftl to themes/base/email/text/

append messages/*.properties to themes/base/email/messages/messages_en.properties

But thers is only themes folder is available base/email/html or base/email/text subfolder is not available.

Please any one guide me. Thankyou.

@nitesh-habilelabs
Copy link

using quay.io/keycloak/keycloak docker image

But how do I need to perform these steps :

html/code-email.ftl is a html email template. Copy to themes/base/email/html/

copy text/code-email.ftl to themes/base/email/text/

append messages/*.properties to themes/base/email/messages/messages_en.properties

But thers is only themes folder is available base/email/html or base/email/text subfolder is not available.

Please any one guide me. Thankyou.

you can manually create those folders. i am using 22.0.1 too and there was only themes folder. so i created folder inside that as suggested and it worked.

@Ghayour-vialogic
Copy link

I have followed all the steps. However, when I run the server and login it still shows the authenticator screen for Microsoft and google. What steps you have followed to run it correctly?

@nitesh-habilelabs
Copy link

I have followed all the steps. However, when I run the server and login it still shows the authenticator screen for Microsoft and google. What steps you have followed to run it correctly?

to confirm that you have followed all steps correctly, please upload your code somewhere because debugging it without checking the structure and code will be tough.

@Ghayour-vialogic
Copy link

I have followed these steps:

  1. Created Jar file and placed it in the providers folder
  2. html/code-email.ftl is a html email template. Copy to themes/base/email/html/
  3. copy text/code-email.ftl to themes/base/email/text/
  4. append messages/*.properties to themes/base/email/messages/messages_en.properties
  5. ./kc.bat build to build it
  6. ./kc.bat start-dev to start the server.
  7. Modified authentication flow it looks like this
    image (3)

@nitesh-habilelabs
Copy link

I have followed these steps:

  1. Created Jar file and placed it in the providers folder
  2. html/code-email.ftl is a html email template. Copy to themes/base/email/html/
  3. copy text/code-email.ftl to themes/base/email/text/
  4. append messages/*.properties to themes/base/email/messages/messages_en.properties
  5. ./kc.bat build to build it
  6. ./kc.bat start-dev to start the server.
  7. Modified authentication flow it looks like this
    image (3)

there should be Email option in "Add step" . you need to add that.

@Ghayour-vialogic
Copy link

I have resolved it however, I am not able to get the OTP on the email. The server logs are as below. Although, I have copied all three files in their respective folders.
Caused by: org.keycloak.theme.FreeMarkerException: Failed to process template text/code-email.ftl
at org.keycloak.theme.freemarker.DefaultFreeMarkerProvider.processTemplate(DefaultFreeMarkerProvider.java:52)
at org.keycloak.email.freemarker.FreeMarkerEmailTemplateProvider.processTemplate(FreeMarkerEmailTemplateProvider.java:228)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants