Search in sources :

Example 1 with CasAuthenticationEntryPoint

use of org.springframework.security.cas.web.CasAuthenticationEntryPoint in project uhgroupings by uhawaii-system-its-ti-iam.

the class SecurityConfig method casProcessingFilterEntryPoint.

@Bean
public CasAuthenticationEntryPoint casProcessingFilterEntryPoint() {
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setLoginUrl(casLoginUrl);
    entryPoint.setServiceProperties(serviceProperties());
    return entryPoint;
}
Also used : CasAuthenticationEntryPoint(org.springframework.security.cas.web.CasAuthenticationEntryPoint) Bean(org.springframework.context.annotation.Bean)

Example 2 with CasAuthenticationEntryPoint

use of org.springframework.security.cas.web.CasAuthenticationEntryPoint in project esup-papercut by EsupPortail.

the class CasConfig method authenticationEntryPoint.

@Bean
@Primary
public AuthenticationEntryPoint authenticationEntryPoint(ServiceProperties sP) {
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setLoginUrl(url + "/login");
    entryPoint.setServiceProperties(sP);
    return entryPoint;
}
Also used : CasAuthenticationEntryPoint(org.springframework.security.cas.web.CasAuthenticationEntryPoint) Primary(org.springframework.context.annotation.Primary) Bean(org.springframework.context.annotation.Bean)

Example 3 with CasAuthenticationEntryPoint

use of org.springframework.security.cas.web.CasAuthenticationEntryPoint in project tutorials by eugenp.

the class CasSecuredAppApplication method authenticationEntryPoint.

@Bean
@Primary
public AuthenticationEntryPoint authenticationEntryPoint(ServiceProperties sP) {
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setLoginUrl("https://localhost:6443/cas/login");
    entryPoint.setServiceProperties(sP);
    return entryPoint;
}
Also used : CasAuthenticationEntryPoint(org.springframework.security.cas.web.CasAuthenticationEntryPoint) Primary(org.springframework.context.annotation.Primary) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)3 CasAuthenticationEntryPoint (org.springframework.security.cas.web.CasAuthenticationEntryPoint)3 Primary (org.springframework.context.annotation.Primary)2