Hi,

I'm playing with 5.0.0.RC2-SNAPSHOT, trying to migrate from CAS 4.1.0

With old xml configs and deployerConfigContext.xml I had my own specific 
attributeRepository bean in xml. It just worked with war overlay, all my 
code was embedded into cas-server via xml beans and component-scan in xml.
With spring-boot I wanted to repeat the same thing. I thought to use 

@ConditionalOnMissingBean(name = "attributeRepository")

and define my own bean via xml component-scan.
Unfortunately, it doesn't work. I 
suppose, CasCoreAuthenticationConfiguration have too high @Order and 
requires attributeRepository, so my component-scan starts too late.

@Order(value = Ordered.HIGHEST_PRECEDENCE) on my configuration and 
spring.autoconfigure.exclude doesn't help. The only workaround i found is 
to create my own boot application and totaly exclude 
CasPersonDirectoryAttributeRepositoryConfiguration with excludeFilters.

This way seems to be strange, I hope I'm missing something, but what?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2004031b-afc0-4a06-8d61-5e204230f99b%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to