You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
AIMSConfig contains method initAdapterConfig that is using reflection to setup keycloak Adapter configuration based on Spring environment.
Currently it supports only setting String values and boolean values
That means that when I need to set the keycloak secret in credentials map it is impossible in current implementation.
Solution:
Add code to support Map type in AIMSConfig or rewrite the environment system for keycloak configuration entirely.
After line 128:
else if (method.getParameterTypes()[0] == boolean.class)
{
method.invoke(this.adapterConfig, Boolean.parseBoolean(value));
}
Problem:
AIMSConfig contains method initAdapterConfig that is using reflection to setup keycloak Adapter configuration based on Spring environment.
Currently it supports only setting String values and boolean values
That means that when I need to set the keycloak secret in credentials map it is impossible in current implementation.
Solution:
Add code to support Map type in AIMSConfig or rewrite the environment system for keycloak configuration entirely.
After line 128:
there could be something like this:
Then setting like
-Daims.credentials=secret:1234567-1234-1234-1234-123456789will be possible to configure keycloak secret in confidential setup.Both the current solution and proposed solution seem hacky. Maybe refactoring of current implementation is needed.
Thank you,
Filip