Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config with Azure AD #18

Open
mrochon opened this issue Jul 5, 2016 · 2 comments
Open

Config with Azure AD #18

mrochon opened this issue Jul 5, 2016 · 2 comments

Comments

@mrochon
Copy link

mrochon commented Jul 5, 2016

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

@svrooij
Copy link
Contributor

svrooij commented Sep 20, 2016

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.

@zarusz
Copy link
Contributor

zarusz commented Dec 19, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants