mirror of
https://github.com/Alfresco/alfresco-keycloak-theme.git
synced 2025-12-19 18:18:29 -05:00
3448917d8926b5b340533c09a89315389b9449ed
Alfresco Keycloak Theme
Overview
Keycloak allows a user to provide alternative themes to replace the default Keycloak themes.
The following themes can be replaced.
- login
- account
- admin
This projects contains a possible theme to replace the login theme. It was done as an experiment to understand the level of effort and options.
Design
Several approaches are possible.
- Extend the existing themes. With this approach, a copy of the default theme is made and selective edits are made to the theme. For example, different style sheets can be used but otherwise the layout provide by Keycloak could stay the same.
- Use ADF. With this approach, the ADF component is used directly, effectively making Keycloak and ADF app.
- Custom login page. With this approach, a page is provided that uses the same approved Alfresco styles.
This project currently uses the approach of a custom login page (option #3).
Implementation
Since Keycloak supports Freemarker, a template file is provided along with css styles like those documented in o look like the approved designs
Deployment
- After installing Keycloak, navigate to the these directory (e.g. ~/development/keycloak-3.4.3.Final/themes).
- Create a directory named Alfresco.
- Copy the login directory from this project to a login directory in the Alfresco directory you just created
- Start Keycloak and navigate to the admin console theme. Choose the Alfresco these as illustrated. Click Save.
- Login to the Alfresco realm (e.g. http://localhost:8080/auth/realms/Alfresco/account/) and you should see a screen like this.
Next Steps
This is a candidate to include in the Alfresco Identity Service.
Internationalization needs to be added as well as message handling.
Description
Languages
CSS
41.3%
Fluent
29.5%
FreeMarker
17.7%
Shell
11.5%
