v3.0.0
This commit is contained in:
@@ -35,6 +35,7 @@ import org.maxkey.authz.saml.common.EndpointGenerator;
|
||||
import org.maxkey.authz.saml.common.TrustResolver;
|
||||
import org.maxkey.authz.saml.service.IDService;
|
||||
import org.maxkey.authz.saml.service.TimeService;
|
||||
import org.maxkey.authz.saml20.binding.BindingAdapter;
|
||||
import org.maxkey.authz.saml20.binding.ExtractBindingAdapter;
|
||||
import org.maxkey.authz.saml20.consumer.AuthnRequestGenerator;
|
||||
import org.maxkey.authz.saml20.consumer.spring.IdentityProviderAuthenticationException;
|
||||
@@ -51,6 +52,7 @@ import org.opensaml.common.binding.security.MessageReplayRule;
|
||||
import org.opensaml.saml2.core.Assertion;
|
||||
import org.opensaml.saml2.core.Response;
|
||||
import org.opensaml.saml2.core.StatusCode;
|
||||
import org.opensaml.ws.message.decoder.MessageDecodingException;
|
||||
import org.opensaml.xml.security.CriteriaSet;
|
||||
import org.opensaml.xml.security.SecurityException;
|
||||
import org.opensaml.xml.security.credential.Credential;
|
||||
@@ -77,6 +79,8 @@ public class ConsumerEndpoint {
|
||||
|
||||
private final static Logger logger = LoggerFactory.getLogger(ConsumerEndpoint.class);
|
||||
|
||||
private BindingAdapter bindingAdapter;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("spKeyStoreLoader")
|
||||
private KeyStoreLoader keyStoreLoader;
|
||||
@@ -129,8 +133,8 @@ public class ConsumerEndpoint {
|
||||
initCredential(spId);
|
||||
|
||||
SAMLMessageContext messageContext=null;
|
||||
|
||||
/*try {
|
||||
/*
|
||||
try {
|
||||
messageContext = bindingAdapter.extractSAMLMessageContext(request);
|
||||
} catch (MessageDecodingException me) {
|
||||
logger.error("Could not decode SAML Response", me);
|
||||
|
||||
@@ -18,12 +18,6 @@
|
||||
package org.maxkey.authz.saml20.jit;
|
||||
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.maxkey.entity.UserInfo;
|
||||
|
||||
|
||||
public interface ProvisioningAdapter {
|
||||
|
||||
//HashMap<String,String> construct(UserInfo userInfo,Companys company,List<Roles> listRoles) ;
|
||||
|
||||
@@ -21,7 +21,6 @@ import org.opensaml.xml.Configuration;
|
||||
import org.opensaml.xml.XMLObject;
|
||||
import org.opensaml.xml.validation.ValidationException;
|
||||
import org.opensaml.xml.validation.ValidatorSuite;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
|
||||
public class SAML2ValidatorSuite {
|
||||
|
||||
|
||||
@@ -107,6 +107,7 @@ public class Saml20AutoConfiguration implements InitializingBean {
|
||||
@Bean(name = "authnResponseGenerator")
|
||||
public AuthnResponseGenerator authnResponseGenerator(TimeService timeService,IDService idService,
|
||||
@Value("${maxkey.saml.v20.idp.issuer}") String issuerEntityName) {
|
||||
_logger.debug("issuerEntityName " + issuerEntityName);
|
||||
AuthnResponseGenerator generator = new AuthnResponseGenerator(issuerEntityName,timeService,idService);
|
||||
return generator;
|
||||
}
|
||||
@@ -163,6 +164,7 @@ public class Saml20AutoConfiguration implements InitializingBean {
|
||||
* MapBasedStorageService.
|
||||
* @return mapBasedStorageService
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Bean(name = "mapBasedStorageService")
|
||||
public MapBasedStorageService mapBasedStorageService() {
|
||||
MapBasedStorageService mapBasedStorageService = new MapBasedStorageService();
|
||||
@@ -175,6 +177,7 @@ public class Saml20AutoConfiguration implements InitializingBean {
|
||||
* @throws IOException
|
||||
* @throws VelocityException
|
||||
*/
|
||||
@SuppressWarnings({ "deprecation"})
|
||||
@Bean(name = "velocityEngine")
|
||||
public VelocityEngine velocityEngine() throws VelocityException, IOException {
|
||||
VelocityEngineFactoryBean factory = new VelocityEngineFactoryBean();
|
||||
|
||||
Reference in New Issue
Block a user