[cas-user] CAS 5.2.4. Is it possible to create custom registry cleaner
Hi, I am using CAS 5.2.4. I would like to know if its possible to create a custom ticket registry cleaner. I would like to log the user out of system database at the time of ticket clean up. I looked at cas-server-core-api-ticket and cas-server-core-tickets jars. I could not find a config that will help register a new RegistryCleaner. Is this possible at all? Thanks, -- - 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 cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/68d847b6-5f08-4104-87cc-52dca2eb6012%40apereo.org.
[cas-user] DefaultRegistryCleaner does not call rgistered custom LogoutHandler
Hi, I am using CAS 5.2.4. I have a custom logout handler registered and working properly. It logs the user out from our database. This works perfectly fine when I hit /logout endpoint. But when the TGC expires the user logs out of the CAS but is still logged in to the database. I would expect DefaultRegistryCleaner will call the custom LogoutHandler as well. How do I make DefaultRegistryCleaner to call Custom logout handler? Is there another way to do this? Thanks, -- - 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 cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/a3e2ecc5-ebd5-4b2b-bb7c-9233e62cbd5c%40apereo.org.
[cas-user] Implementing Custom Logout. Getting ClassCastException for UrlValidator.
Hi, I am trying to implement custom cas logout. I have implemented custom cas login which works perfectly fine. I have created a a class which implements LogoutManager and another one which implements LogoutHandler. I created a third class to register my custom logout handler which implements LogoutExecutionPlanConfigurer In this configuration class I have following code which is causing problem. @Bean SingleLogoutServiceLogoutUrlBuilder singleLogoutServiceLogoutUrlBuilder(){ return new DefaultSingleLogoutServiceLogoutUrlBuilder(urlValidator()); } @Bean UrlValidator urlValidator() { return new UrlValidator(){ @Override public boolean isValid(String s) { return org.apache.commons.validator.routines.UrlValidator.getInstance().isValid(s); } @Override public boolean isValidDomain(String s) { return DomainValidator.getInstance().isValid(s); } }; } I am getting below error 2018-05-23 14:59:06,489 WARN [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext] - May 23, 2018 2:59:06 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1874) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casReportsConfiguration': Unsatisfied dependency expressed through field 'cas3ServiceSuccessView'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casValidationConfiguration': Unsatisfied dependency expressed through field 'centralAuthenticationService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casCoreConfiguration': Unsatisfied dependency expressed through field 'logoutManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logoutManager' defined in class path resource [com/openbet/cas/logout/config/OpenbetLogoutManagerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.openbet.cas.logout.OBLogoutManagerImpl]: Factory method 'logoutManager' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realLogoutManager' defined in class path resource [com/openbet/cas/logout/config/OpenbetLogoutManagerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.logout.LogoutManager]: Factory method 'realLogoutManager' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'singleLogoutServiceMessageHandler' defined in class path resource [com/openbet/cas/logout/config/OpenbetLogoutManagerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.logout.SingleLogoutServiceMessageHandler]: Factory method 'singleLogoutServiceMessageHandler' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'singleLogoutServiceLogoutUrlBuilder' defined in class path resource [com/openbet/cas/logout/config/OpenbetLogoutManagerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.logout.SingleLogoutServiceLogoutUrlBuilder]: Factory method 'singleLogoutServiceLogoutUrlBuilder' threw exception; nested exception is java.lang.ClassCastException: org.apereo.cas.web.SimpleUrlValidatorFactoryBean$$EnhancerBySpringCGLIB$$ba7be36f cannot be cast to