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 ServiceProperties serviceProperties;
private final URI proxyCallbackUri;
public ProxyCallbackAndServiceAuthenticationDetailsSource(ServiceProperties serviceProperties,
URI proxyCallbackUri) {
super(serviceProperties);
this.serviceProperties = serviceProperties;
this.proxyCallbackUri = proxyCallbackUri;
}
@Override
public ServiceAuthenticationDetails buildDetails(HttpServletRequest context) {
return new DefaultProxyCallbackAndServiceAuthenticationDetails(serviceProperties, context, proxyCallbackUri);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy