Rana, In CustomAuthHandlerConfig, set your value for @Configuration. Put the spring.factories file with your code. It might work the way you have it with tomcat config but I do not know. See https://github.com/apereo/cas/tree/master/support/cas-server-support-ldap/src/main
Ray On Fri, 2019-05-24 at 10:59 -0700, Rana Prathap B wrote: Thanks Ray, Build was success. I am overriding the existing LDAPAuthConfig with CustomLDAPAuthConfig. added the config class name under spring.properties too but the CustomLDAPHandler is not getting registered. Can you please check the attached files and let me know is this the proper way to override the CAS LDAPAuthHandler? -Rana On Friday, May 24, 2019 at 9:20:32 PM UTC+5:30, rbon wrote: Rana, Look in the build file for the class you are copying, https://github.com/apereo/cas/blob/5.3.x/support/cas-server-support-ldap/build.gradle You might find it easier to build up your custom class instead of copying an existing class and removing the items you do not want. And if you find that you need a lot of what is provided in an existing class, extend that class and override only the parts you need to. Ray On Fri, 2019-05-24 at 04:59 -0700, Rana Prathap B wrote: Hi All, I have a requirement to process the auth response before I give it to client. i.e Post to successful authentication I would like to make a REST call to validate the user against 3rd party and return the AuthResposne. As part of this I have written a new CustomAuthHandlerConfig.java which is as similar as LdapAuthenticationConfiguration in CAS. Getting below errors during cas-overlay build. [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/username/cas-workspace/cas-overlay-template/src/main/java/com/pramati/cas/config/CustomAuthHandlerConfig.java:[22,45] package org.apereo.cas.authentication.support does not exist [ERROR] /home/username/cas-workspace/cas-overlay-template/src/main/java/com/pramati/cas/config/CustomAuthHandlerConfig.java:[23,45] package org.apereo.cas.authentication.support does not exist [ERROR] /home/username/cas-workspace/cas-overlay-template/src/main/java/com/pramati/cas/config/CustomAuthHandlerConfig.java:[24,45] package org.apereo.cas.authentication.support does not exist [ERROR] /home/username/cas-workspace/cas-overlay-template/src/main/java/com/pramati/cas/config/CustomAuthHandlerConfig.java:[33,27] package org.apereo.cas.util does not exist [ERROR] /home/username/cas-workspace/cas-overlay-template/src/main/java/com/pramati/cas/config/CustomAuthHandlerConfig.java:[34,27] package org.apereo.cas.util does not exist Added Dependency as: <dependency> <groupId>org.apereo.cas</groupId> <artifactId>cas-server-core-authentication-api</artifactId> <version>${cas.version}</version> </dependency> Attached related files for the same. -- Ray Bon Programmer Analyst Development Services, University Systems 2507218831 | CLE 019 | [email protected]<javascript:> -- Ray Bon Programmer Analyst Development Services, University Systems 2507218831 | CLE 019 | [email protected] -- - 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/e46b26b7a6cfaab35c78ed6392f7d7746fb95d38.camel%40uvic.ca.
