-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
It's worth exploring whether we can use Dynamic Imports to import the Keycloak module. This would save us having to build a wrapper.
Useful reading - https://nodejs.org/api/esm.html#interoperability-with-commonjs
A suggestion might be to create a asynchronous loadKeycloakModules() function that is called in this style:
{{async function loadKeycloakModules() { }}
{{const
{ default: KcAdminClient } = await import('@keycloak/keycloak-admin-client');}}
}
The ideal outcome of the task would be a draft PR to https://github.com/janus-idp/backstage-plugins that uses this method of loading.
It may be easiest to start with updating to @keycloak/keycloak-admin-client@19.0.3 to test the ESM interoperability without having to account for the breaking changes between 18 and 25 (the latest major version).
- duplicates
-
RHDHBUGS-977 [Keycloak] Subgroups not working as expected
-
- Closed
-
- links to