KEYCLOAK-1542 allowed to show additional info from JPA and Mongo DB Providers on System Info page. But current implementation doesn't allow showing additional info from custom providers implementing distinct Keycloak SPIs.
Reason is because ProviderFactory interfaces forming most of current SPIs are not marked by ServerInfoAwareProviderFactory interface.
There are two possible ways how to patch this problem:
- mark all current SPI factory interfaces by the ServerInfoAwareProviderFactory - probably simpler to do, but drawback is that it will require implementation of new method into all existing providers, and also new SPIs added later must always contain this marker interface which may be forgotten and bring problems in the future
- change implementation to accept/detect ServerInfoAwareProviderFactory marker interface on concrete ProviderFactory implementations, not on SPI level interfaces only.