com.kakawait.spring.security.cas.web.authentication.ProxyCallbackAndServiceAuthenticationDetailsSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-security-cas-extension Show documentation
Show all versions of spring-security-cas-extension Show documentation
Spring security cas extension and additional implementation used by the starter
package com.kakawait.spring.security.cas.web.authentication;
import org.springframework.security.cas.ServiceProperties;
import org.springframework.security.cas.web.authentication.ServiceAuthenticationDetails;
import org.springframework.security.cas.web.authentication.ServiceAuthenticationDetailsSource;
import java.net.URI;
import javax.servlet.http.HttpServletRequest;
/**
* @author Thibaud Leprêtre
*/
public class ProxyCallbackAndServiceAuthenticationDetailsSource extends ServiceAuthenticationDetailsSource {
private final ProxyCallbackAndServiceAuthenticationDetails serviceAuthenticationDetails;
public ProxyCallbackAndServiceAuthenticationDetailsSource(ServiceProperties serviceProperties,
ProxyCallbackAndServiceAuthenticationDetails serviceAuthenticationDetails) {
super(serviceProperties);
this.serviceAuthenticationDetails = serviceAuthenticationDetails;
}
public ProxyCallbackAndServiceAuthenticationDetailsSource(ServiceProperties serviceProperties,
URI proxyCallbackUri) {
super(serviceProperties);
serviceAuthenticationDetails =
new DefaultProxyCallbackAndServiceAuthenticationDetails(serviceProperties, proxyCallbackUri);
}
@Override
public ServiceAuthenticationDetails buildDetails(HttpServletRequest context) {
serviceAuthenticationDetails.setContext(context);
return serviceAuthenticationDetails;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy