-
Notifications
You must be signed in to change notification settings - Fork 57
Description
I downloaded AAD metadata from: https://nexus.microsoftonline-p.com/federationmetadata/saml20/federationmetadata.xml but following attempt at OWIN config fails with 'Metadata signature could not be verified':
var metadata = new XmlDocument() { PreserveWhitespace = true };
metadata.Load(@"C:\Workspaces\Projects\OwinSAML2\OwinSAML2\metadata.xml");
var samlConfig = new SAML2.Config.Saml2Configuration()
{
ServiceProvider = new SAML2.Config.ServiceProvider()
{
Id = "https://owinwsfedsample.com",
Server = "https://localhost:44381/",
},
IdentityProviders = new IdentityProviders(new IdentityProvider[]
{
new IdentityProvider()
{
Metadata = new Saml20MetadataDocument(metadata), OmitAssertionSignatureCheck = true
}
}),
AllowedAudienceUris = new List { new Uri("https://owinwsfedsample.com") }
};