Hi Rana,
Hmm very strange indeed,
> need to mention my custom configuration anywhere other than
spring.factories?
No, only in spring.factories is ok, BTW you do not need to
include CasEmbeddedContainerTomcatConfiguration
and CasEmbeddedContainerTomcatFiltersConfiguration in your
spring.factories, although it shouldn't be what cause your problem
a few more things you can check to see if will resolve this:
- Can you show me the layout of the few files you given? Sometime the
config file is valid, but put in the wrong spot
- In your CustomAuthConfiguration file, can you change the line
from @Configuration("ldapAuthenticationConfiguration")
to @Configuration("customAuthConfiguration"). Should change the name of the
string to the same as your class
- Try not to use ConditionalOnMissingBean inside your own function, the
notation is used for allowing your to more easily override the function, so
you should remove that notation inside your code
- And... did you add any configuration inside cas.properties or other
properties / yml files? Because looking at your code, it would only work if
you have setup some config already, can you show us your config file (i.e.
cas.properties or equilalent)
BTW, I highly suggest your CustomAuthHandlerConfig class extends
from LdapAuthenticationConfiguration, that way you didn't have to copy all
the function in your own implementation.
See if the above helps you!
Cheers!
- Andy
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
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 view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f6f1f82b-d1a6-4ab5-947a-adbb237edfc4%40apereo.org.