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

Support using internal realm name on components for support with imported realms #929

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ernstsen
Copy link

@Ernstsen Ernstsen commented Feb 7, 2024

Added support for components using the internal realm name.

This resolves issue #802

The issue arises as the provider assumes that realmId==parentId which is not the case for imported realms, as their parentId is the internalId generated by keycloak, which uses an UUID.

When the internal id is not set, the behavior defaults to the old one, as to not break any currently supported realms using this provider to manage their keys.

@Ernstsen Ernstsen force-pushed the internal-realm-name-on-components branch 2 times, most recently from 66c3246 to 36b026d Compare February 13, 2024 10:12
Created simple backwards-compatible fix for issue mrparkers#802 in realm_keystore implementations

By allowing to set realm_internal_id explicitly it allows for imported realms to have the UUID set by keycloak, while not breaking legacy usage of this provider, as they will have realm_id == realm_internal_id.

Also added documentation for internal_realm_id arguments
@Ernstsen Ernstsen force-pushed the internal-realm-name-on-components branch from 36b026d to 3513f6b Compare February 13, 2024 10:13
@Ernstsen Ernstsen changed the title Internal realm name on components Support using internal realm name on components for support with imported realms Mar 22, 2024
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.

None yet

1 participant