Customize Keycloak with themes

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 42

  • @RobFine
    @RobFine 3 місяці тому +4

    This was incredibly helpful. Thanks so much! The admin and account theme files being in the jar was exactly what I was missing.

  • @dancersys
    @dancersys Місяць тому +1

    Very useful, thank you so much. I have Keycloak installed on a Debian machine, but logic is the same. I managed to change authorization error page style and message thanks to you :)

  • @VelfinScriptLab
    @VelfinScriptLab 3 місяці тому +1

    Excellent video, you saved my life, I spent days trying to do it until I saw your excellent video, I am a new subscriber

  • @JoyKarmakar-zo7im
    @JoyKarmakar-zo7im 4 місяці тому +1

    I saw other videos also about this topic I didn't understand properly and in your video you explained in so simple, I can understand this topic now. Thank you so much.

  • @lenhatminhkhoi9174
    @lenhatminhkhoi9174 3 місяці тому +1

    Super detailed and legible. Thank you so much !!!

  • @nima.shokouhfar
    @nima.shokouhfar 4 місяці тому +1

    Great video. Now, I am more clear what is going on.

    • @learningsoftwareskills
      @learningsoftwareskills  4 місяці тому

      @@nima.shokouhfar thank you very much for the amazing feedback 👍🙏

  • @redcrown5070
    @redcrown5070 2 місяці тому +1

    This video is great! Thanks so much!

  • @upcomingprogrammer6244
    @upcomingprogrammer6244 3 місяці тому +1

    This is wonderful tutorial. It's gave clear picture of theming of keycloak , I have one question regarding keycloak account theme , i want to add some button, custom element in the page for that what need to be done. Please advise.

    • @learningsoftwareskills
      @learningsoftwareskills  3 місяці тому +1

      hi, you can create a complete theme from scratch by extending the base theme. But that would be difficult to develop and maintain. I would suggest extending the default keycloak theme.
      If you want to add new html markup to the pages, you can overwrite the ftl files of the parent theme in the new theme.
      Hope this helps, cheers 👍

    • @upcomingprogrammer6244
      @upcomingprogrammer6244 3 місяці тому +1

      @@learningsoftwareskills Yes I have implemented it , I needed more customisation so I needed to write everything from scratch, almost i touched all their tsx files and compiled it made a jar and placed into provider it works.
      By the way Thank you very much , your video gave me kick start on extending themes.

    • @learningsoftwareskills
      @learningsoftwareskills  3 місяці тому

      @@upcomingprogrammer6244 thank u for the encouraging feedback 👍🙏

  • @rabahalishah5124
    @rabahalishah5124 2 місяці тому +3

    My theme is not showing up in the drop down of theme section in realm settings. Can you please tell me why is it so? I have created the exact anatomy as yours and restarted my server. But still I'm theme is not showing. My version of keycloak is 26.0.2.

    • @learningsoftwareskills
      @learningsoftwareskills  2 місяці тому

      Hi, please check if the theme folder is created in the right folder and also check the theme.properties file. Also see the offical documentation at
      www.keycloak.org/docs/latest/server_development/index.html#_themes

  • @BRCSMohammedowais
    @BRCSMohammedowais 2 місяці тому +1

    i performed the same steps but for a realm login page, i am not able to replace logo with realm name

    • @learningsoftwareskills
      @learningsoftwareskills  2 місяці тому

      Hi, the version used in this video is an image in the login screen. But in the new versions of keycloak, the login screen displays the realm name instead of logo image.
      So rename the realm name as per requirement and it will be displayed in the login screen

  • @maheshreddy8236
    @maheshreddy8236 Місяць тому +1

    I am not able to start the server. The following error is occurring
    D:\keycloak-26.0.5>bin\kc.bat start-dev
    JAVA_HOME is not set. Unexpected results may occur.
    Set JAVA_HOME to the directory of your local JDK to avoid this message.
    Unrecognized option: --add-opens=java.base/java.util=ALL-UNNAMED
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    D:\keycloak-26.0.5>

    • @learningsoftwareskills
      @learningsoftwareskills  Місяць тому

      Hi, you need to first install the OpenJDK. Download zip from learn.microsoft.com/en-us/java/openjdk/download#openjdk-21. Unzip the OpenJDK folder from zip file. Set the JAVA_HOME system environment variable to the OpenJDK folder.
      Hope this helps, cheers 👍

  • @king.freddy
    @king.freddy 10 днів тому

    how do i change the theme to dark mode? I would need to chage the white area to black and the text to white, but not sure what they are called in the common css.

  • @greosera6101
    @greosera6101 Місяць тому +1

    So, it's not fully free styling to customize the login page?
    can only override some images by naming the same with the parent?
    I was thinking about fully customize the login page.

    • @learningsoftwareskills
      @learningsoftwareskills  Місяць тому

      You can do that by extending the base theme instead of keycloak theme. I have not tried it but it would tough if you want a completely different login page

  • @ganeshbabu8263
    @ganeshbabu8263 7 місяців тому +2

    Thanks a lot 🙏🏻, can you describe and make a video about keycloakify video

    • @learningsoftwareskills
      @learningsoftwareskills  7 місяців тому +2

      Hi, thanks for the feedback. I will try to know about it and try to make a video. Cheers 👍

  • @nousername-l8u
    @nousername-l8u 5 місяців тому +2

    How to do it with docker keycloak

    • @learningsoftwareskills
      @learningsoftwareskills  5 місяців тому

      ua-cam.com/video/myJLRt4ppS4/v-deo.htmlsi=3bsqInf-nOBpuMdR
      Hi, while building your keycloak docker container, you can copy the theme files to the opt/jboss/keycloak/themes as shown in the above video.
      Hope this helps, cheers 👍

  • @NaveenKumar-qx9gt
    @NaveenKumar-qx9gt 7 місяців тому +1

    "I have configured multiple IDPs in Keycloak. Is it possible to automatically log in through a particular IDP based on the user's email domain? Additionally, on the login page, can only the email field be displayed?"

    • @learningsoftwareskills
      @learningsoftwareskills  7 місяців тому +1

      Hi i don't think automatically choosing an IDP based on the user email address is possible. The user needs to explicitly select the IDP to login first.

  • @Aaron-pc5md
    @Aaron-pc5md 7 місяців тому +1

    Can you provide the code for each file? in the login section?

    • @learningsoftwareskills
      @learningsoftwareskills  7 місяців тому

      Hi, all the code for the video is present in the blogpost for this video at nagasudhir.blogspot.com/2024/04/customize-keycloak-appearance-with.html
      Hope this helps, cheers 👍

  • @Programming_Codding
    @Programming_Codding 7 місяців тому +1

    how to do the same in docker

    • @learningsoftwareskills
      @learningsoftwareskills  7 місяців тому +1

      Hi, good question. to achieve custom theme in keycloak running in docker, you need to copy the theme files into the docker container by writing copy command in the docker file something like below
      COPY ./themes/my-theme/ /opt/keycloak/themes/my-theme
      Some of the links on this topic are shown below
      * github.com/saurav-samantray/custom-auth-service/blob/main/Dockerfile , saurav-samantray.medium.com/dockerize-keycloak-21-with-a-custom-theme-b6f2acad03d5
      * stackoverflow.com/questions/52641379/keycloak-deploy-custom-theme-in-docker
      If you solve this, write back about your experience.
      Hope this helps, cheers 👍

  • @avineeshkumar5384
    @avineeshkumar5384 6 місяців тому +1

    Hello,
    I just have a little question about theming keycloak.
    I modify a bit the css and logo to make a custom login page.
    After I import the newly created theme I apply it and it works well for the
    master Realm, but when I apply this theme to another Realm I've the Realm
    name that appears on the login page instead of my logo.
    How can I make my logo appears instead of the realm name ?
    Is it something to configure in keycloak ? or a property to change in the
    theme properties ?

    • @learningsoftwareskills
      @learningsoftwareskills  6 місяців тому

      Hi, please send the screenshot to learningsoftwareskills@gmail.com
      Let us see what is the issue

    • @kenjiong6897
      @kenjiong6897 5 місяців тому

      I have the same issue as well

  • @JeremiahManuel
    @JeremiahManuel 6 місяців тому +1

    not working, no source code, could have been better with github repo

    • @learningsoftwareskills
      @learningsoftwareskills  6 місяців тому

      @@JeremiahManuel hi, the code can be found the blogpost at nagasudhir.blogspot.com/2024/04/customize-keycloak-appearance-with.html
      Hope this helps, cheers 👍