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

Fix encryption key requirement in KeycloakClientBundle #26

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

mainick
Copy link
Owner

@mainick mainick commented Oct 28, 2024

Fixes #20

Update the encryption key configuration to make the path optional if the key is provided.

  • Configuration Validation

    • Add validation in src/DependencyInjection/Configuration.php to ensure that at least one of encryption_key or encryption_key_path is provided.
  • KeycloakClient Constructor

    • Update the constructor in src/Provider/KeycloakClient.php to throw an exception only if both encryption_key and encryption_key_path are empty.
    • Modify the logic to set the encryption key using either encryption_key or encryption_key_path if they are provided.

For more details, open the Copilot Workspace session.

Fixes #20

Update the encryption key configuration to make the path optional if the key is provided.

* **Configuration Validation**
  - Add validation in `src/DependencyInjection/Configuration.php` to ensure that at least one of `encryption_key` or `encryption_key_path` is provided.

* **KeycloakClient Constructor**
  - Update the constructor in `src/Provider/KeycloakClient.php` to throw an exception only if both `encryption_key` and `encryption_key_path` are empty.
  - Modify the logic to set the encryption key using either `encryption_key` or `encryption_key_path` if they are provided.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/mainick/KeycloakClientBundle/issues/20?shareId=XXXX-XXXX-XXXX-XXXX).
@mainick mainick merged commit 2715e7d into main Oct 28, 2024
1 check passed
@mainick mainick deleted the fix-encryption-key-requirement branch November 19, 2024 11:38
mainick added a commit that referenced this pull request Nov 19, 2024
Fix encryption key requirement in KeycloakClientBundle
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

Successfully merging this pull request may close these issues.

Why both "IAM_ENCRYPTION_KEY" and "IAM_ENCRYPTION_KEY_PATH" are required?
1 participant