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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2BwDP5hVL0BX7aSLQrPSfJJ5UPUMR56Pq1_CfCrADiYz--MGNQ%40mail.gmail.com.

Reply via email to