use of org.pac4j.saml.client.SAML2ClientConfiguration in project pac4j by pac4j.
the class SAML2IdentityProviderMetadataResolverTest method setUp.
@Before
public void setUp() {
SAML2ClientConfiguration configuration = new SAML2ClientConfiguration();
configuration.setIdentityProviderMetadataResource(new ClassPathResource("idp-metadata.xml"));
metadataResolver = new SAML2IdentityProviderMetadataResolver(configuration);
}
use of org.pac4j.saml.client.SAML2ClientConfiguration in project pac4j by pac4j.
the class RunTestshib method getClient.
@Override
protected IndirectClient getClient() {
final SAML2ClientConfiguration cfg = new SAML2ClientConfiguration(new ClassPathResource("samlKeystore.jks"), "pac4j-demo-passwd", "pac4j-demo-passwd", new ClassPathResource("testshib-providers.xml"));
cfg.setMaximumAuthenticationLifetime(3600);
cfg.setServiceProviderEntityId("urn:mace:saml:pac4j.org");
cfg.setServiceProviderMetadataResource(new FileSystemResource(new File("target", "test-sp-metadata.xml").getAbsolutePath()));
cfg.setDestinationBindingType(SAMLConstants.SAML2_REDIRECT_BINDING_URI);
final SAML2Client client = new SAML2Client(cfg);
client.setCallbackUrl(PAC4J_URL);
return client;
}
Aggregations