Relative Content

Tag Archive for javaspringspring-security

Password encryption in Spring MVC

I am using Spring MVC and I want to encrypt the password that gets saved in dB, I had a look into other threads and they suggest going with MD5. Is it a good practice to go with MD5 or is there any other method in Spring to achieve it?

Update spring security config after initialization

I have a problem with security configuration. When the application starts, there is a GlobalSecurityConfiguration where KeyCloakConfig distributes requests between offline and online modes,
public GlobalSecurityConfiguration(BeanFactory beanFactory, KeyCloakConfig keyCloakConfig) { this.beanFactory = beanFactory; this.keyCloakConfig = keyCloakConfig; }
Where keyCloakConfigdistributes requests between offline/online false-need to check token/true-don`t