Hi Team, Please find the corrections and findings.
<dependency> <groupId>org.apereo.cas.client</groupId> <artifactId>cas-client-support-springboot</artifactId> <version>4.0.2</version> </dependency> If I remove spring-boot-starter-security from the pom.xml and also remove @Configuration to configure authorized http requests, the filters are picked up and is working fine. But spring-security is another integral part of the solution which cannot be discarded. Please help to understand if I m using the client spring boot dependencies wrongly here. Regards, Anu. On Wed, 14 Jun, 2023, 15:37 Anu Chandran, <anuchandra...@gmail.com> wrote: > Hi Team, > > I have tried to configure the java-cas-client 4.2.0 version for spring > boot application using the following dependency. > > <dependency> > *<groupId>org.apereo.cas.client</groupId>* > * <artifactId>cas-client-support-springboot</artifactId>* > * <version>4.2.0</version>* > *</dependency>* > > And then configured following properties in application.xml using my CAS > and application URL. > > *cas.server-url-prefix=https://cashost.com/cas <https://cashost.com/cas>* > *cas.server-login-url=https://cashost.com/cas/login > <https://cashost.com/cas/login>* > *cas.client-host-url=https://casclient.com <https://casclient.com>* > > Then created a spring boot application configuration using following > annotation > > @SpringBootApplication > @Controller > @EnableCasClient > public class MyApplication > > In addition, configured web security using below code, > > @Configurationpublic class SecurityConfiguration extends > WebSecurityConfigurerAdapter { > > @Override > protected void configure(HttpSecurity http) throws Exception { > http > .authorizeHttpRequests((authz) -> authz > .anyRequest().authenticated() > ); > } > > } > > Then implemented a Spring Rest controller on /test URL. How ever, the CAS > filters are not invoked and the redirection to CAS server didn't happen. > Please note, I have not added any web.xml filters since I m using auto > configuration via spring boot.Please help me to understand what is missing > here. Mn > > Regards, > > Anu > > -- - 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/CA%2BwDP5j8cQQc7c18KK8PNhPwaHyNaTVOWDYSbdJgvJGv5icGCg%40mail.gmail.com.