SAML2 icon indicating copy to clipboard operation
SAML2 copied to clipboard

Config with Azure AD

Open mrochon opened this issue 8 years ago • 2 comments

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<Uri> { new Uri("https://owinwsfedsample.com") } };

mrochon avatar Jul 05 '16 02:07 mrochon

If you're using Azure AD why don't you use (the better supported) WS-Federation package?

Or Open-ID connect..... I would recommend using this package only if the identity provider doesn't support some easier way.

svrooij avatar Sep 20 '16 06:09 svrooij

@mrochon did you end up integrating with Azure AD via SAML2.0 and this library?

zarusz avatar Dec 19 '16 10:12 zarusz