Search in sources :

Example 1 with MetadataMemoryProvider

use of org.springframework.security.saml.metadata.MetadataMemoryProvider in project hub-alert by blackducksoftware.

the class SAMLManager method createMemoryProvider.

// This needs to be created in order for Azure AD SAML configuration to work. The entity id in the metadata is different
// than the entity id configured in Azure.  This allows the the entity id to get mapped and found correctly for the application.
private Optional<ExtendedMetadataDelegate> createMemoryProvider() throws MetadataProviderException {
    EntityDescriptor descriptor = metadataGenerator.generateMetadata();
    MetadataMemoryProvider provider = new MetadataMemoryProvider(descriptor);
    provider.initialize();
    return Optional.of(createDelegate(provider));
}
Also used : EntityDescriptor(org.opensaml.saml2.metadata.EntityDescriptor) MetadataMemoryProvider(org.springframework.security.saml.metadata.MetadataMemoryProvider)

Aggregations

EntityDescriptor (org.opensaml.saml2.metadata.EntityDescriptor)1 MetadataMemoryProvider (org.springframework.security.saml.metadata.MetadataMemoryProvider)1