Currently I am using the example provide from ComponentSpace to better understand this process. I have the MvcExampleIdentityProvider and MvcExampleServiceProvider in one project and have pasted the configuration at the bottom and below is the error I am receiving. Please advise
One or more configuration XML schema validation errors occurred.
One or more configuration XML schema validation errors occurred.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException: One or more configuration XML schema validation errors occurred.
Source Error: Line 46: }Line 47: Line 48: SAMLIdentityProvider.InitiateSSO(Line 49: Response,Line 50: userName, |
This is in the MvcExampleIdentityProvider"
<add key=“PartnerSP” value=“
”>http://localhost/MvcExampleServiceProvider"/> <add key=“TargetUrl” value=“
”>http://localhost/MvcExampleIdentityProvider"/> /////////////////////////////////////////////////////////////////////////////////////////////////////////
This is in the MvcExampleServiceProvider
<add key=“PartnerIdP” value=“
”>http://localhost/MvcExampleIdentityProvider"/>////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
This is in the saml.config for the MvcExampleIdentityProvider"
<IdentityProvider Name=“<a href=“
http://localhost/MvcExampleIdentityProvider””>
http://localhost/MvcExampleIdentityProvider"
LocalCertificateFile=“idp.pfx”
LocalCertificatePassword=“password”/>
<PartnerServiceProvider Name=“<a href=“
http://localhost/MvcExampleServiceProvider””>
http://localhost/MvcExampleServiceProvider"
WantAuthnRequestSigned=“false”
SignSAMLResponse=“true”
SignAssertion=“false”
EncryptAssertion=“false”
AssertionConsumerServiceUrl=“<a href=“
http://localhost/MvcExampleServiceProvider/SAML/AssertionConsumerService””>
http://localhost/MvcExampleServiceProvider/SAML/AssertionConsumerService"
SingleLogoutServiceUrl=“<a href=“
http://localhost/MvcExampleServiceProvider/SAML/SLOService””>
http://localhost/MvcExampleServiceProvider/SAML/SLOService"
PartnerCertificateFile=“sp.cer”/>
This is in the saml.config in the MvcExampleServiceProvider
<?xml version="1.0"?>
<ServiceProvider Name=“<a href=“
http://localhost/MvcExampleServiceProvider””>
http://localhost/MvcExampleServiceProvider"
AssertionConsumerServiceUrl=“~/SAML/AssertionConsumerService”
LocalCertificateFile=“sp.pfx”
LocalCertificatePassword=“password”/>
<PartnerIdentityProvider Name=“<a href=“
http://localhost/MvcExampleIdentityProvider””>
http://localhost/MvcExampleIdentityProvider"
SignAuthnRequest=“false”
WantSAMLResponseSigned=“true”
WantAssertionSigned=“false”
WantAssertionEncrypted=“false”
SingleSignOnServiceUrl=“<a href=“
http://localhost/MvcExampleIdentityProvider/SAML/SSOService””>
http://localhost/MvcExampleIdentityProvider/SAML/SSOService"
SingleLogoutServiceUrl=“<a href=“
http://localhost/MvcExampleIdentityProvider/SAML/SLOService””>
http://localhost/MvcExampleIdentityProvider/SAML/SLOService"
PartnerCertificateFile=“idp.cer”/>