Dev - #2
Merged
Merged
Conversation
…ation for MediCare integration
There was a problem hiding this comment.
Pull request overview
This PR adds a custom “MediCare” Keycloak login theme and updates the local Keycloak development setup to automatically load that theme and an updated realm configuration.
Changes:
- Introduces a new Keycloak login theme (
medicare) with custom FreeMarker templates and styling. - Updates the Keycloak realm import to use the new login theme and expands the
medicareclient configuration (redirect URIs, web origins, post-logout redirects, secret). - Updates local
docker-compose.yamlto pin the Keycloak image version, import the realm on startup, and mount the theme + realm config into the container.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| development/keycloak/themes/medicare/login/theme.properties | Declares theme inheritance and CSS resource. |
| development/keycloak/themes/medicare/login/resources/css/login.css | Adds MediCare-specific styling for Keycloak auth pages. |
| development/keycloak/themes/medicare/login/login.ftl | Custom login page template. |
| development/keycloak/themes/medicare/login/register.ftl | Custom registration page template. |
| development/keycloak/themes/medicare/login/login-reset-password.ftl | Custom password reset request page template. |
| development/keycloak/themes/medicare/login/info.ftl | Custom informational page template. |
| development/keycloak/themes/medicare/login/error.ftl | Custom error page template. |
| development/keycloak/realm-config.json | Sets loginTheme and expands realm roles + client configuration. |
| development/docker-compose.yaml | Pins Keycloak version, enables realm import, and mounts theme/realm config volumes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a custom "MediCare" Keycloak theme and updates the Keycloak development environment to support it. It enhances the authentication experience with custom UI, improves realm configuration, and ensures the local development setup loads the new theme and configuration automatically.
Keycloak Theme Integration and UI Enhancements:
development/keycloak/themes/medicare, including tailored login, registration, password reset, error, and info pages (login.ftl,register.ftl,login-reset-password.ftl,error.ftl,info.ftl), a modern CSS stylesheet, and theme properties. This provides a cohesive, branded user experience for MediCare authentication. [1] [2] [3] [4] [5] [6] [7]Keycloak Realm and Client Configuration:
realm-config.jsonto:medicareclient configuration with a name, secret, base URL, additional redirect URIs, post-logout redirect URIs, and web origins for local development. [1] [2] [3]Development Environment Updates:
docker-compose.yamlto:--import-realmflag to the Keycloak startup command so the realm config is loaded automatically