Skip to content

Config with Azure AD #18

@mrochon

Description

@mrochon

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") }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions