-
Story
-
Resolution: Done
-
Critical
-
None
-
None
-
2
-
False
-
-
False
-
RHIDP-4795 - dynamic authentication provider plugins
-
-
Enhancement
-
Done
-
-
-
RHDH Dynamic Plugins 3267/3268, RHDH Dynamic Plugins 3269, RHDH Dynamic Plugins 3270
With a working POC implementation using an external authentication provider it's time to get the bits in place that enable this support. This comes in 2 distinct areas:
- The backend side needs the environment variable that disables the statically defined authentication provider set
- The frontend side needs a method for a dynamic plugin to supply a custom SignInPage
The latter is normally done statically by supplying a custom SignInPage to the createApp function via the components option. We can satisfy the 2nd bullet by adding a components configuration entry for frontend dynamic plugins where a dynamic plugin can supply one of several known component names as an export and use the configuration to map this export to the components option when the frontend is initialized. Something like:
dynamicPlugins: rootDirectory: dynamic-plugins-root frontend: immobiliarelabs-backstage-plugin-ldap-auth: components: SignInPage: module: PluginRoot importName: SignInPage
Where components would be a map of one of these known accepted components