Java Code Examples for org.springframework.security.cas.web.CasAuthenticationEntryPoint#setServiceProperties()

The following examples show how to use org.springframework.security.cas.web.CasAuthenticationEntryPoint#setServiceProperties() . 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 File: WebSecurityConfig.java    From dubbo-postman with 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 File: CasConfiguration.java    From cymbal with 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 File: SecurityConfiguration.java    From cymbal with 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 File: CasConfig.java    From Spring-Security-Third-Edition with 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 File: CasConfig.java    From Spring-Security-Third-Edition with 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 File: CasConfig.java    From Spring-Security-Third-Edition with 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 File: CasConfig.java    From Spring-Security-Third-Edition with 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 File: CasConfig.java    From Spring-Security-Third-Edition with 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 File: CasConfig.java    From Spring-Security-Third-Edition with 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 File: SpringWebConfig.java    From we-cmdb with 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 File: WebSecurityConfig.java    From tutorials with 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;
}