Java Code Examples for org.springframework.security.cas.web.CasAuthenticationEntryPoint

The following examples show how to use org.springframework.security.cas.web.CasAuthenticationEntryPoint. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: dubbo-postman   Source File: WebSecurityConfig.java    License: MIT License 5 votes vote down vote up
/**
 * 配置CAS登录页面
 */
public SessionExpireEntryPoint getCasAuthenticationEntryPoint() {
    CasAuthenticationEntryPoint point = new CasAuthenticationEntryPoint();
    point.setLoginUrl(SSO_URL + "/login");
    point.setServiceProperties(serviceProperties());
    SessionExpireEntryPoint entryPoint = new SessionExpireEntryPoint(point);
    return entryPoint;
}
 
Example 2
Source Project: cymbal   Source File: CasConfiguration.java    License: Apache License 2.0 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint(ServiceProperties serviceProperties) {
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setLoginUrl(this.casProperties.getServerLoginUrl());
    entryPoint.setServiceProperties(serviceProperties);
    return entryPoint;
}
 
Example 3
Source Project: cymbal   Source File: SecurityConfiguration.java    License: Apache License 2.0 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint(final ServiceProperties serviceProperties) {
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setLoginUrl(this.casProperties.getServerLoginUrl());
    entryPoint.setServiceProperties(serviceProperties);
    return entryPoint;
}
 
Example 4
Source Project: Spring-Security-Third-Edition   Source File: CasConfig.java    License: MIT License 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint()
throws Exception
{
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setServiceProperties(serviceProperties());
    entryPoint.setLoginUrl(casServerLogin);
    entryPoint.afterPropertiesSet();
    return entryPoint;
}
 
Example 5
Source Project: Spring-Security-Third-Edition   Source File: CasConfig.java    License: MIT License 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint()
throws Exception
{
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setServiceProperties(serviceProperties());
    entryPoint.setLoginUrl(casServerLogin);
    entryPoint.afterPropertiesSet();
    return entryPoint;
}
 
Example 6
Source Project: Spring-Security-Third-Edition   Source File: CasConfig.java    License: MIT License 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint()
throws Exception
{
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setServiceProperties(serviceProperties());
    entryPoint.setLoginUrl(casServerLogin);
    entryPoint.afterPropertiesSet();
    return entryPoint;
}
 
Example 7
Source Project: Spring-Security-Third-Edition   Source File: CasConfig.java    License: MIT License 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint()
throws Exception
{
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setServiceProperties(serviceProperties());
    entryPoint.setLoginUrl(casServerLogin);
    entryPoint.afterPropertiesSet();
    return entryPoint;
}
 
Example 8
Source Project: Spring-Security-Third-Edition   Source File: CasConfig.java    License: MIT License 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint()
throws Exception
{
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setServiceProperties(serviceProperties());
    entryPoint.setLoginUrl(casServerLogin);
    entryPoint.afterPropertiesSet();
    return entryPoint;
}
 
Example 9
Source Project: Spring-Security-Third-Edition   Source File: CasConfig.java    License: MIT License 5 votes vote down vote up
@Bean
public CasAuthenticationEntryPoint casAuthenticationEntryPoint()
throws Exception
{
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setServiceProperties(serviceProperties());
    entryPoint.setLoginUrl(casServerLogin);
    entryPoint.afterPropertiesSet();
    return entryPoint;
}
 
Example 10
Source Project: we-cmdb   Source File: SpringWebConfig.java    License: Apache License 2.0 4 votes vote down vote up
public AuthenticationEntryPoint casAuthenticationEntryPoint() {
    CasAuthenticationEntryPoint point = new CasAuthenticationEntryPoint();
    point.setLoginUrl(securityProperties.getCasServerUrl() + "/login");
    point.setServiceProperties(serviceProperties());
    return point;
}
 
Example 11
Source Project: tutorials   Source File: WebSecurityConfig.java    License: MIT License 4 votes vote down vote up
public AuthenticationEntryPoint authenticationEntryPoint() {
    CasAuthenticationEntryPoint entryPoint = new CasAuthenticationEntryPoint();
    entryPoint.setLoginUrl("https://localhost:8443/login");
    entryPoint.setServiceProperties(serviceProperties);
    return entryPoint;
}
 
Example 12
Source Project: dubbo-postman   Source File: SessionExpireEntryPoint.java    License: MIT License 2 votes vote down vote up
SessionExpireEntryPoint(final CasAuthenticationEntryPoint casAuthenticationEntryPoint){

        this.casAuthenticationEntryPoint = casAuthenticationEntryPoint;
    }