Skip to content

feat(Keycloak): Add API to import a realm configuration file#1526

Merged
HofmeisterAn merged 2 commits intotestcontainers:developfrom
VladislavAntonyuk:keycloak-import-realm
Sep 12, 2025
Merged

feat(Keycloak): Add API to import a realm configuration file#1526
HofmeisterAn merged 2 commits intotestcontainers:developfrom
VladislavAntonyuk:keycloak-import-realm

Conversation

@VladislavAntonyuk
Copy link
Contributor

@VladislavAntonyuk VladislavAntonyuk commented Sep 12, 2025

What does this PR do?

Enables importing a Keycloak realm from a JSON file.

This feature allows users to pre-configure Keycloak instances with specific realm settings, clients, and users, simplifying the setup and configuration process. A new test has been added to verify the import functionality.

Why is it important?

Related issues

Enables importing a Keycloak realm from a JSON file.

This feature allows users to pre-configure Keycloak instances
with specific realm settings, clients, and users, simplifying
the setup and configuration process.  A new test has been
added to verify the import functionality.
@netlify
Copy link

netlify bot commented Sep 12, 2025

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 8907a94
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-dotnet/deploys/68c44cb3fa504b000897aae4
😎 Deploy Preview https://deploy-preview-1526--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Collaborator

@HofmeisterAn HofmeisterAn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I made a few small updates and applied the repo standards. Usually, we avoid binding/mounting a host directory or file into the container since not all container runtimes support it. Instead, we prefer copying the file into the container. If you're okay with the changes, I'm happy to merge the PR. Thanks again.

@HofmeisterAn HofmeisterAn changed the title Adds realm import functionality feat(Keycloak): Add API to import a realm configuration file Sep 12, 2025
@HofmeisterAn HofmeisterAn added the enhancement New feature or request label Sep 12, 2025
@VladislavAntonyuk
Copy link
Contributor Author

Thank you @HofmeisterAn . All changes look good.

@HofmeisterAn HofmeisterAn merged commit ce66114 into testcontainers:develop Sep 12, 2025
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: KeyCloak allow to import realm file

2 participants