Я использую cas-overlay-template версии 5.3 (https://github.com/apereo/cas-overlay-template/tree/5.3)
Я хочу настроить аутентификацию Handler,
@Configuration("AcceptAuthenticationConfiguration")
@EnableConfigurationProperties(CasConfigurationProperties.class)
public class AcceptAuthenticationConfiguration
implements AuthenticationEventExecutionPlanConfigurer {
private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(AcceptAuthenticationConfiguration.class);
@Autowired
private CasConfigurationProperties casProperties;
Вот как я показываю значение casProperies:
@RefreshScope
@Bean
public AuthenticationHandler myAuthenticationHandler() {
LOGGER.debug("Location = ", casProperties.getServiceRegistry().getJson().getLocation());
final CustomAuthenticationHandler handler = new CustomAuthenticationHandler("abc", servicesManager, myAuthenticationPrincipalFactory(), 0);
return handler;
}
Здесь есть проблема: переменная casProperties не была перезаписана значениями в файле cas.properties .
Как я могу это сделать?
Исходный код Github: git: https://github.com/vnpt2324/cas-overlay-template/blob/master/src/main/java/authentication/AcceptAuthenticationConfiguration.java